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

it will shows complie time error,to execute we typecast the
int to byte

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java call by reference?

986


How objects of a class are created if no constructor is defined in the class?

1075


What is an error in java?

1159


What are examples of modifiers?

1138


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1113


What is the size of boolean variable?

1083


What are the differences between path and classpath variables?

1051


What is ide with example?

994


What are the two main uses of volatile in Java?

1063


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

1027


Why is it important to initialize a variable?

999


How many classes can any class inherit java?

977


What is protected in java?

1009


What are java packages? What's the significance of packages?

1334


Why main method is called first in java?

1015