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
Is vector thread safe in java?
Which eclipse is best for java?
What is immutable in java?
Tell me a few examples of final classes defined in Java API?
What is derived datatype?
Is java jre still free?
What is an exception in java?
What are classloaders?
Can we convert stringbuilder to string in java?
What are latest features introduced with java 8?
Give us the name of the list layoutmanagers in java?
Explain about the main() method in java?
Which of the following classes will have more memory allocated?
Write a method to check if input string is palindrome?
How we can generate random numbers in java?