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. This is a nice introduction. Thanks a lot.
View Tutorial          By: Provas Kumar Saha at 2010-04-26 02:38:34

2. thank for this script
because i will work

View Tutorial          By: r at 2009-06-27 05:07:31

3. nice material
View Tutorial          By: ravi at 2008-12-24 00:40:12

4. Isn't the Vector class deprecated now? I think Arr
View Tutorial          By: Brent at 2013-07-07 06:10:01

5. ans to 23:
by using gdb(GNU deb

View Tutorial          By: Bhargav at 2011-11-02 13:23:51

6. can i have a piece of program so that i can improv
View Tutorial          By: miniboss at 2010-11-12 06:09:41

7. can i using stack in microsoft access 2007
View Tutorial          By: pxin at 2015-03-24 05:45:56

8. I am getting a blank page. Closed the table tag an
View Tutorial          By: Harshal at 2013-02-19 14:56:35

9. Thanks :) It works for me :)
View Tutorial          By: Milind at 2011-12-07 10:05:23

10. Class TypeCasting
{
public static v

View Tutorial          By: kishoree koli at 2013-03-14 03:00:31