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 is jagged array in java?

1006


Explain about exception propagation?

973


What is another word for methodology?

969


How can you write a loop indefinitely in java programming?

950


Explain what are final variable in java?

1019


Are maps ordered java?

894


What are locale settings?

933


Differentiate jar and war files?

977


What is the difference between JVM and JRE?

1040


What are advantages of exception handling in java?

974


What is int short for?

963


Can you achieve runtime polymorphism by data members?

1073


How to handle a web browser resize operation?

1002


Can we create constructor in abstract class ?

986


What is data type in java?

865