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 is jagged array in java?
Explain about exception propagation?
What is another word for methodology?
How can you write a loop indefinitely in java programming?
Explain what are final variable in java?
Are maps ordered java?
What are locale settings?
Differentiate jar and war files?
What is the difference between JVM and JRE?
What are advantages of exception handling in java?
What is int short for?
Can you achieve runtime polymorphism by data members?
How to handle a web browser resize operation?
Can we create constructor in abstract class ?
What is data type in java?