byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?

Answer Posted / kalyan

it will shows complie time error,to execute we typecast the
int to byte

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is passing by reference in java?

631


How do you declare a variable?

713


explain copyonwritearraylist and when do we use copyonwritearraylist?

635


What is the basic difference between string and stringbuffer object?

681


Discuss about garbage collector in Java.

753






How can we run a java program without making any object?

636


What is the covariant return type?

676


What is the symbol for line break?

708


What are the different types of constructor?

603


What is java util list?

569


What is callablestatement? How you can call stored procedure to pass in parameter?

631


What is java english?

580


What is autoboxing and unboxing?

666


Are generics important java?

614


What is a numeric digit?

671