byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / dinesh kumar
compilation fails
possibl;e loss of precision, 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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the legal operands of the instanceof operator?
What does flag mean in java?
What does snprintf return?
Why inputstreamreader is used in java?
Is empty set an element of empty set?
What is difference between null and void?
Explain working of call by reference function invoking.
Is it necessary for the port addresses to be unique? Explain with reason.
What is the use of private static?
Is java a virus?
What is nan inf?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
Is cout buffered?
Tell me the Importent classes in net package?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?