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
Explain the concept of proper inheritance?
Can It is possible to synchronize the constructor of a Java Class?
Can you declare the main method as final?
What are design patterns and please explain?
What are different types of constants?
What is the association?
Can you extend singleton class?
What is a ternary operator in java?
What is difference between static and final?
What is the loop in java?
Is there any sort function in java?
How can we break singleton in java?
What is a generic type?
What are the 8 data types in java?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?