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
How many types of classes are there in java?
How do you implement polymorphism in our day to day life?
What is the use of arraylist in java?
What is constructor and its types?
When is the finally clause of a try-catch-finally statement executed?
Is hashmap thread safe?
Can an integer be a string?
What is regex java?
How to compare two strings in java program?
What are the major drawbacks of external iteration?
What causes memory leak in java?
What is module with example?
What are three types of loops in java?
Define an abstract class with reference to java.
Is list ordered in java?