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

Is string passed by reference in java?

1047


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

1139


Why is string buffer better than string ?

1198


Write a program to find maximum and minimum number in array?

1049


What is math floor in java?

994


Explain java code for recursive solution's base case?

1091


How do I print a “?

1054


Is a boolean variable?

1065


what is the purpose of "virtual"?

1128


Can we declare main () method as non static?

1037


Is constructor inherited?

1013


Why java applets are more useful for intranets as compared to internet?

1132


Can we have return statement in finally clause? What will happen?

1012


How we can skip finally block of exception even if some exception occurs in the exception block in java?

1002


Why a dead thread occurs?

1026