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 is int short for?
What is the difference between the ">>" and " >>>" operators in java?
What is an argument java?
Why heap memory is called heap?
Write a method to check if input string is palindrome?
What are the differences between graph and tree?
Difference between static and dynamic class loading.
What are the parts of a method?
How do you ensure that n threads can access n resources without deadlock?
What do you mean by Hash Map and Hash Table?
What is a private class in java?
Is oracle java 11 free?
Can anonymous class have constructor?
What is meant by overloading?
what do you understand by synchronization? : Java thread