Can we add two byte variables and assign the result to a
byte variable ?
b=b1+b2 where b,b1,b2 are byte types
Answer Posted / guest
yes.But you have to cast that variable before adding.
eg:
byte b=(byte)b1+(byte)b2
| Is This Answer Correct ? | 7 Yes | 35 No |
Post New Answer View All Answers
If goto and const is reserve words than why it is not work in java?
Which are different kinds of source code?
How long will it take to learn java?
Why we use protected in java?
What is the difference between access specifiers and access modifiers in java? 16
What is the difference between variable declaration and variable initialization?
How can we make a class singleton?
Can we have this () and super () together?
Can constructor be static or final?
What is a website container?
What are the steps that are followed when two computers connect through tcp?
What is static import?
What is the Difference between Final Class && Abstract Class?
How to call one constructor from the other constructor ?
Why pointers are not used in java?