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 passing by reference in java?
How do you declare a variable?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is the basic difference between string and stringbuffer object?
Discuss about garbage collector in Java.
How can we run a java program without making any object?
What is the covariant return type?
What is the symbol for line break?
What are the different types of constructor?
What is java util list?
What is callablestatement? How you can call stored procedure to pass in parameter?
What is java english?
What is autoboxing and unboxing?
Are generics important java?
What is a numeric digit?