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



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. You can have a look at the tutorial written by Era
View Tutorial          By: John Berger at 2011-03-26 09:24:22

2. Hi,

Your COM port is currently in u

View Tutorial          By: Ramlak at 2008-04-14 07:29:55

3. hey plz tell me... can the sequenceinputstream be
View Tutorial          By: gaurav at 2010-08-18 17:21:58

4. where is the main class .
View Tutorial          By: rishi at 2015-10-02 10:17:17

5. BEST COMMENT EVER:
"Reading the above

View Tutorial          By: Mr.X at 2013-10-02 16:31:42

6. 29. It is not a deadlock. What will actually happe
View Tutorial          By: Sasha at 2012-01-24 14:34:03

7. Thank you sir.
View Tutorial          By: Balan at 2008-09-02 22:16:56

8. Good Luck.........

by Nagarajan(

View Tutorial          By: nagarajan at 2011-06-21 12:14:39

9. It gives strange result when we use == as delimite
View Tutorial          By: Amit at 2010-05-07 05:03:41

10. Hi, i am newly in java,please send me on sample pr
View Tutorial          By: aruna.k at 2012-12-13 06:05:44