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

Will set allow duplicates in java?

918


What is parseint?

951


Is special character in java?

1050


What do you understand by final value?

996


What is package private scope in java?

880


What is a marker interface?

1085


Difference between notify() method and notifyall() method in java?

914


Which sorting is best in java?

958


What is a Hash Table? What are the advantages of using a hash table?

1035


worst case complexities of Quick sort and Merge sort.

948


What is a lock or purpose of locks in java?

971


Can you explain the cs option of java interpreter?

895


Is empty list java?

876


What is a condition in java?

934


Do extraneous variables affect validity?

868