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. DON'T USE GETS!!!!!!!!!!!!!!! IT'S DANGEROUS!
View Tutorial          By: Caterpillar at 2012-04-23 13:22:42

2. I running this on localhost offline and getting er
View Tutorial          By: nitisha at 2011-05-14 09:18:16

3. Thanks for the above description, but pls let me k
View Tutorial          By: Amit Goyal at 2009-09-25 05:33:10

4. Hi thanks for the example for overriding toString(
View Tutorial          By: Reshma at 2011-05-11 10:46:08

5. thnx for the nice tutorial. but i need to create a
View Tutorial          By: sharath at 2013-09-07 16:29:19

6. I was able to modify this to work perfectly.

View Tutorial          By: _Jon at 2012-04-01 23:04:49

7. hai vij i am also having error what sol u used to
View Tutorial          By: uma at 2008-05-30 01:05:39

8. Thanks very much.
View Tutorial          By: Haritha at 2011-05-26 07:56:06

9. Now what the hell does all this mean???
To

View Tutorial          By: Søren at 2011-09-22 03:13:53

10. At a writing of the big program in a team comments
View Tutorial          By: vlad at 2011-05-13 12:29:01