byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / ravi
It will show compile time error
possible loss of precision
found int
reqired byte
| Is This Answer Correct ? | 27 Yes | 1 No |
Post New Answer View All Answers
Is it possible to use string in the switch case?
Why can't you declare a class as protected?
What is method overloading in JAVA? Why is it not present in C ?
Explain the hierarchy of java exception classes?
What is the best definition for data?
When can an object reference be cast to an interface reference in java programming?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
How will you add panel to a frame?
What is variable declaration and definition?
What is the difference between reader/writer and inputstream/output stream?
Does java support Operator Overloading?
What is an exception? difference between Checked and Unchecked exception in Java
How do listeners work?
What are pass by reference and pass by value?
What is the role of the java.rmi.naming class?