Comment on Tutorial - this keyword in Java By Jagan



Comment Added by : raziq

Comment Added at : 2011-12-18 16:06:09

Comment on Tutorial : this keyword in Java By Jagan
@pankaj because u need to cast it. when u add nums it get converted to integer which is bigger in size so u need to cast it to byte like this

byte c= (byte)a+b;


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Very Very nice explanation...
View Tutorial          By: anil at 2010-11-04 00:22:58

2. The code sample in this tutorial is good. It would
View Tutorial          By: Anon at 2009-06-05 03:36:59

3. Its really good and helpfull..........
chee

View Tutorial          By: sumit at 2009-04-28 05:17:17

4. Hi,
i executed this program successfully in

View Tutorial          By: Praveen at 2010-07-14 01:05:37

5. hii
i have

two varirables
View Tutorial          By: niranjan at 2012-07-31 06:47:36

6. Hi, thi's sursh laveti, actually I'm getting a pro
View Tutorial          By: suresh l at 2015-06-24 07:53:19

7. please provide Example instanceof With Collection
View Tutorial          By: siddardha at 2010-08-18 00:30:38

8. this article is excellent....solve all my doubt re
View Tutorial          By: pramodk at 2011-07-18 14:22:18

9. aoa i am for the first time learning programing pl
View Tutorial          By: manaal siddiqui at 2011-11-02 09:38:00

10. this article is very good for the beginners. I am
View Tutorial          By: manoj kumar palbabu at 2009-12-02 10:44:04