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
What variables are stored in stack?
Define immutable object?
What is the meaning of variable in research?
How to overcome the exception object reference not set to an instance of object?
What is overriding in java?
How to pass arraylist to stored procedure in java?
What is the maximum size of hashmap in java?
How finally used under exception handling?
How to use string tokenizer class.
Is arraylist zero based?
What is a variable and constant?
What does += mean in java?
What data type is a string?
What is meant by singleton class?
What are heterogeneous objects?