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
Which is the best sorting technique in java?
Explain the features of interfaces in java?
What does main method?
What is an image buffer?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What is an 8 bit word?
What is the difference between conversation & casting?
How to instantiate member inner class?
What is preflight request?
What is the synchronized method modifier?
Is integer passed by reference in java?
Is call by reference possible in java?
Is space a character in java?
How many techniques can be employed to create a string object?
What is a bubble sort in java?