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
Difference between java and javascript
What is application tier?
What are adapter classes?
What is heterogeneous in java?
What is oops in java?
What is mean by encoding?
What is the difference between a field variable and a local variable?
Can the garbage collection be forced by any means?
Can I overload to string method
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?
What is serialization in java?
What happens when main () method is declared as private?
What is lastindexof in java?
Are functions objects in java?
What is the history of java?