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...

byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p?

Answer Posted / amulkumar

CE:Type mismatch: cannot convert from int to byte
at byte c=a+b;

to avoid this typecast: byte c=(byte)a+b;
or
int c=a+b;

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about method local inner classes or local inner classes in java?

1027


What is the private method modifier?

1089


What is the difference between this() and super() in java?

1045


What is the difference between C++ and Java and your preferences?

1113


what is the major difference between linkedlist and arraylist in java?

1218


What is the synchronized method modifier?

1203


Is final static java?

1011


What is the difference between iterator and list iterator?

1035


What is void class in java?

974


Which is bigger float or double java?

978


What are the four corner stones of oop?

1037


What does string mean in java?

1104


What does java ide mean?

1139


How do I remove a character from a string in java?

964


What are the Class Libraries ?

1046