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

Answer Posted / ravikiran

compilation fails
possibl;e loss of precision
because results in an int

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you know if a value is nan?

573


Which api is provided by java for operations on set of objects?

918


What is array pointers ?

607


How do you identify independent and dependent variables?

507


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1535






Can you inherit from an abstract class java?

536


What is instance means in java?

566


What is the difference between the ">>" and " >>>" operators in java?

512


Why java is used everywhere?

593


How do you empty a list in java?

545


If an object is garbage collected, can it become reachable again?

548


what is the volatile modifier for? : Java thread

523


When should I use singleton pattern?

548


What is keyset in java?

660


How to display names of all components in a Container?

2491