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. Gan,

Above print is not working bec

View Tutorial          By: Amit at 2011-07-25 05:26:47

2. No main class found
need favour
help

View Tutorial          By: Mudasir at 2012-11-10 17:09:57

3. Awesome script. works like a charm.


View Tutorial          By: blestab at 2011-03-02 04:32:35

4. My question is, from where the name "java&quo
View Tutorial          By: Sreedevi at 2013-05-18 10:41:38

5. hello
thanks for your code
It works

View Tutorial          By: m_karimi at 2008-10-24 12:08:06

6. very very useful..thank you
View Tutorial          By: sridaran at 2009-03-21 00:45:21

7. I get the exception with the message "Permiss
View Tutorial          By: Jan at 2011-07-20 08:58:55

8. thanks!!
View Tutorial          By: eoko at 2011-05-10 23:34:29

9. Using ForwardAction for Integration is Good, Which
View Tutorial          By: Ramesh Ram at 2013-06-05 17:57:25

10. you really dont know how much i want to thank u...
View Tutorial          By: Angana Sengupta at 2013-01-23 18:34:51