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 t in parametric equations?

977


What is the difference between an inner class and a sub-class?

985


Which variable is the independent variable?

966


How to connect to a remote database using Applet?

2521


What is the exception hierarchy in java?

937


What does method mean?

1041


Can a class extend more than one class?

1097


What are the different approaches to implement a function to generate a random number?

1041


What is the difference between menuitem and checkboxmenu item?

1315


What is java volatile?

1019


How to provide security in java

2255


What is the finalize method do?

1080


Can a java program have 2 main methods?

1029


How many classes can any class inherit java?

951


Why is a constant variable important?

934