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. good.....not bad. .show me more programs.
View Tutorial          By: saranya at 2011-12-07 08:49:39

2. How to draw a thick circle in midlet?
View Tutorial          By: masi at 2011-12-01 11:47:00

3. Sometimes java do support operator overloading as
View Tutorial          By: Gunjan Srivastava at 2011-07-06 09:14:00

4. gr8 work :)
View Tutorial          By: ahmad at 2011-03-23 01:05:57

5. i have written above code but the values are not s
View Tutorial          By: varun at 2010-01-15 18:37:19

6. sir very well subject is to continuted the java s
View Tutorial          By: G.venkata siva naga kumar at 2009-11-06 01:13:02

7. Awesome and straight forward
View Tutorial          By: Nag at 2012-11-07 23:47:10

8. hi..
recipient: 9994852342 message: chadru<

View Tutorial          By: chandrasekaran at 2009-05-04 09:00:47

9. it was very usefull.....thanks :)
View Tutorial          By: qwerty at 2010-04-04 05:48:07

10. how to use isset keyword with multidimensional arr
View Tutorial          By: mehul at 2015-01-19 23:47:02