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
Is java free for businesses?
How do you write a good declaration?
Is char a method in java?
How do you create a method in java?
what is optional in java 8?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Does substring create a new object?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
Why java is secure? Explain.
What is getclass () getname () in java?
What is java thread dump, how can we get java thread dump of a program?
Is math class static in java?
What do you mean by an interface in java?
Is the milky way in a void?
What is a map in java?