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
How do you know if a value is nan?
Which api is provided by java for operations on set of objects?
What is array pointers ?
How do you identify independent and dependent variables?
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).
Can you inherit from an abstract class java?
What is instance means in java?
What is the difference between the ">>" and " >>>" operators in java?
Why java is used everywhere?
How do you empty a list in java?
If an object is garbage collected, can it become reachable again?
what is the volatile modifier for? : Java thread
When should I use singleton pattern?
What is keyset in java?
How to display names of all components in a Container?