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
What is the purpose of an interface?
Give reasons supporting that string is immutable.
Why java is not 100% object-oriented?
What is the base class in java from which all classes are derived?
What are void pointers?
What is difference between checked and unchecked exception in java?
Can we have any code between try and catch blocks?
How do you do absolute value in java?
Differentiate between postfix and prefix operators in java.
Can a top level class be private or protected?
What is the difference between array and array list in java?
What checkbox method allows you to tell if a checkbox is checked?
Can we call virtual funciton in a constructor ?
What is constructor chaining in java?
Explain about arraylist?