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 is int short for?

1051


What is the difference between the ">>" and " >>>" operators in java?

984


What is an argument java?

977


Why heap memory is called heap?

1048


Write a method to check if input string is palindrome?

1019


What are the differences between graph and tree?

1123


Difference between static and dynamic class loading.

1129


What are the parts of a method?

983


How do you ensure that n threads can access n resources without deadlock?

1314


What do you mean by Hash Map and Hash Table?

1099


What is a private class in java?

1057


Is oracle java 11 free?

968


Can anonymous class have constructor?

1026


What is meant by overloading?

1072


what do you understand by synchronization? : Java thread

1005