byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / ravi
It will show compile time error
possible loss of precision
found int
reqired byte
| Is This Answer Correct ? | 27 Yes | 1 No |
Post New Answer View All Answers
Does the order of public and static declaration matter in main method?
What is the default value of local and global variables?
What do you mean by formatting?
What is the difference between final, finally and finalize()?
What is reverse function?
Can we restart a dead thread in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
What do you know about java?
Why volatile is used in java?
What is percentage in java?
Discuss 2D arrays.
Is an object null?
Name few java util classes introduced with java 8 ?
Is array a class in java?
How many types of parsers are there?