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 / dinesh kumar

compilation fails
possibl;e loss of precision, because
ie type mismatch error from byte to int, instead of byte we
can replace int(before a+b), it will excuite succesfully

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the legal operands of the instanceof operator?

1031


What does flag mean in java?

1025


What does snprintf return?

1012


Why inputstreamreader is used in java?

1028


Is empty set an element of empty set?

1108


What is difference between null and void?

981


Explain working of call by reference function invoking.

1029


Is it necessary for the port addresses to be unique? Explain with reason.

1021


What is the use of private static?

1052


Is java a virus?

963


What is nan inf?

1084


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

1056


Is cout buffered?

1195


Tell me the Importent classes in net package?

2001


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1107