byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?
Answer Posted / dinesh kumar
compilation fails
possibl;e loss of precision, 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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is t in parametric equations?
What is the difference between an inner class and a sub-class?
Which variable is the independent variable?
How to connect to a remote database using Applet?
What is the exception hierarchy in java?
What does method mean?
Can a class extend more than one class?
What are the different approaches to implement a function to generate a random number?
What is the difference between menuitem and checkboxmenu item?
What is java volatile?
How to provide security in java
What is the finalize method do?
Can a java program have 2 main methods?
How many classes can any class inherit java?
Why is a constant variable important?