byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / kalyan
it will shows complie time error,to execute we typecast the
int to byte
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the inheritance?
Why set do not allow duplicates in java?
What are class types in java?
Explain runtime exceptions?
What are the data types supported by java? What is autoboxing and unboxing?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is method reference?
What is serialversionuid?
Define immutable object?
How do you bind variables?
Can each java object keep track of all the threads that want to exclusively access it?
What is hashmap in java?
What is a text string?
When is finally block not called?
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?