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
Can java program run without jre?
What is arraylist class in java?
In how many ways we can do exception handling in java?
Can you make a constructor final in Java?
What is unicode with example?
What is the difference between length and length() method in java?
Can we have any code between try and finally blocks?
Describe the process as to how substring() methodology mechanisms in java.
Explain an intermediate language?
What does the “final” keyword mean in front of a variable? A method? A class?
What type of value does sizeof return?
What is JVM and is it platform independent?
Is there any sort function in java?
What is the difference between the font and fontmetrics classes in java programming?
what is the purpose of using rmisecuritymanager in rmi?