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

How do you sort in java?

995


Difference between serialization and deserialization in java?

1153


What purpose do the keywords final, finally, and finalize fulfill?

1097


Explain about oops concepts.

1130


Why does abstract class have constructor?

1008


Can we have a method name same as class name in java?

1062


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

980


What access modifiers can be used for methods?

1112


What is double checked locking in singleton?

1064


Why should I use abstract class?

1109


Can this keyword be used to refer static members?

1028


What is the difference between jdk and jre?

1069


Can we create more than one object singleton class?

1048


How is abstraction implemented in java ?

1026


List two java ide’s?

1052