Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can java program run without jre?

1003


What is arraylist class in java?

1050


In how many ways we can do exception handling in java?

988


Can you make a constructor final in Java?

1123


What is unicode with example?

1195


What is the difference between length and length() method in java?

1094


Can we have any code between try and finally blocks?

1010


Describe the process as to how substring() methodology mechanisms in java.

1108


Explain an intermediate language?

949


What does the “final” keyword mean in front of a variable? A method? A class?

983


What type of value does sizeof return?

991


What is JVM and is it platform independent?

1042


Is there any sort function in java?

1034


What is the difference between the font and fontmetrics classes in java programming?

1129


what is the purpose of using rmisecuritymanager in rmi?

959