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
Explain different forms of polymorphism?
What is the advantage of functional interface in java 8?
What is static class
Is array size fixed in java?
I want to print “hello” even before main is executed. How will you acheive that?
How many types of the indexof method are there for strings?
What is the difference between member variables initialization and assignment in a constructor?
What is the concept of multithreading?
What is void class in java?
What is meant by final class?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
How do you reverse a word in java?
Why does it take so much time to access an applet having swing components the first time?
How to sort a collection of custom Objects in Java?
What does mean in regex?