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

If goto and const is reserve words than why it is not work in java?

1914


Which are different kinds of source code?

1051


How long will it take to learn java?

938


Why we use protected in java?

932


What is the difference between access specifiers and access modifiers in java? 16

954


What is the difference between variable declaration and variable initialization?

978


How can we make a class singleton?

1002


Can we have this () and super () together?

980


Can constructor be static or final?

1037


What is a website container?

897


What are the steps that are followed when two computers connect through tcp?

945


What is static import?

1095


What is the Difference between Final Class && Abstract Class?

1025


How to call one constructor from the other constructor ?

984


Why pointers are not used in java?

1047