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...

What are integer overflows and underflows and how to handle
them?

Answer Posted / ramesh kumar

byte b = (byte)250;

Here I assinged the value to b more than the positive range
of byte. So, It leads to overflow and we won't get any
error in compile time or run time.

But some unexpected value will be stored into b. i.e b = -
6. This will affect your logic.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this () in java?

984


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

933


Can we convert list to set in java?

930


How will you compute size of a structure?

1098


Does constructor be static?

998


What is Session reduplication and how its done?

1998


What is a text string?

1039


What must a class do to implement an interface in java programming?

986


Which is best ide for java?

1007


What is mean by collections in java?

1103


What is the similarity between dynamic binding and linking?

1073


How can we make sure main() is the last thread to finish in java program?

1156


Explain the difference between an Interface and an Abstract class?

1133


What is static synchronization?

1048


What is the difference between interface & abstract class?

998