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 do you mean by local class?
Why is stringbuffer thread safe?
Difference between arraylist and hashset in java?
What is n in java?
Why is a string immutable?
Can arraylist contain null values?
Give the hierarchy of inputstream and outputstream classes.
How many bits is a double?
Explain about wait() method?
how does the run() method in runnable work? : Java thread
Why declare Main() method as a static in java ?
What is blank final variable?
What are the two categories of data types in the java programming language?
How does indexof work?
What is the parse method in java?