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
Is java call by reference?
How objects of a class are created if no constructor is defined in the class?
What is an error in java?
What are examples of modifiers?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What is the size of boolean variable?
What are the differences between path and classpath variables?
What is ide with example?
What are the two main uses of volatile in Java?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
Why is it important to initialize a variable?
How many classes can any class inherit java?
What is protected in java?
What are java packages? What's the significance of packages?
Why main method is called first in java?