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
Will set allow duplicates in java?
What is parseint?
Is special character in java?
What do you understand by final value?
What is package private scope in java?
What is a marker interface?
Difference between notify() method and notifyall() method in java?
Which sorting is best in java?
What is a Hash Table? What are the advantages of using a hash table?
worst case complexities of Quick sort and Merge sort.
What is a lock or purpose of locks in java?
Can you explain the cs option of java interpreter?
Is empty list java?
What is a condition in java?
Do extraneous variables affect validity?