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
Are arrays static in java?
What are abstract methods in java?
What are the two types of java?
Describe the Big-O Notation.
What do you mean by mnemonics?
Why is it important to initialize a variable?
What is the latest version of java?
What is a boolean in java?
What is the purpose of extern variable?
How do you sort a string in java?
What is ordered map in java?
How long will it take to learn java?
What is sorting algorithm in java?
Define interface in java?
What is the java virtual machine?