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 / janardhan

Above code , there is compile time error will coming, 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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by classloader?

1159


if u open login & logout ,how can udisplay the timelogin & logout members ?

2321


What is byte value?

1044


What is balanced tree in java?

1016


Why a dead thread occurs?

1024


Can you give names of Container classes?

2352


Define an enumeration?

1095


What is java util function?

1168


What is boolean used for?

1090


What is the generic class?

1015


Explain the Propertie sof class?

1107


How can we create an immutable class in java?

1121


What about features of local inner class?

1115


Why does java does not support multiple inheritance? Explain

1038


What is a locale?

1215