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 local class?

1055


Why is stringbuffer thread safe?

1095


Difference between arraylist and hashset in java?

1191


What is n in java?

994


Why is a string immutable?

1070


Can arraylist contain null values?

1070


Give the hierarchy of inputstream and outputstream classes.

1161


How many bits is a double?

1060


Explain about wait() method?

1075


how does the run() method in runnable work? : Java thread

966


Why declare Main() method as a static in java ?

1125


What is blank final variable?

1121


What are the two categories of data types in the java programming language?

1037


How does indexof work?

1013


What is the parse method in java?

1175