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. Quite Helpful.....
^_^

View Tutorial          By: Alfred_Septio at 2012-09-26 12:38:47

2. i added respective code to the Manifest in every c
View Tutorial          By: niko at 2013-04-19 18:23:41

3. If one can't use English grammar correctly and wit
View Tutorial          By: Java Man at 2011-12-09 06:04:14

4. I am trying to figure out what our Professor did w
View Tutorial          By: Abhishek at 2011-04-09 23:31:28

5. Please some one send me the 6th program developed
View Tutorial          By: mounika at 2008-04-25 02:49:56

6. cool.
View Tutorial          By: Fahad Palomo at 2011-08-03 06:19:56

7. Hi. I have implemented the code and controls just
View Tutorial          By: eibod at 2011-02-13 04:58:44

8. help
View Tutorial          By: sne at 2012-08-10 07:13:28

9. I need some help. I am a programmer - but quite n
View Tutorial          By: Ron at 2013-06-21 00:58:27

10. I need code for read write mifare 1k card using No
View Tutorial          By: amarendra at 2010-12-02 21:12:08