byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / janardhan
Above code , there is compile time error will coming, because
ie type mismatch error from byte to int, instead of byte we
can replace int(before a+b), it will excuite succesfully
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what do you mean by classloader?
if u open login & logout ,how can udisplay the timelogin & logout members ?
What is byte value?
What is balanced tree in java?
Why a dead thread occurs?
Can you give names of Container classes?
Define an enumeration?
What is java util function?
What is boolean used for?
What is the generic class?
Explain the Propertie sof class?
How can we create an immutable class in java?
What about features of local inner class?
Why does java does not support multiple inheritance? Explain
What is a locale?