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 null object in java?
Can a class extends itself in java?
When do we use hashset over treeset?
What is the purpose of java?
What is exception hierarchy in java?
What's the difference between comparison done by equals method and == operator?
how to write a server program and sending the mails to the server using smtp protocol please help me
What is the history of java?
What is function and method in java?
List implementations of list interface?
Which are different kinds of source code?
Why are functions called methods in java?
How do I get the | symbol on my keyboard?
Explain polymorphism citing an example.
How many types of classes are there in java?