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 is the difference between Integer and int?

Answer Posted / janet

Integer is a class defined in the java.lang package,where
as int is a primitive data tyep defined in the java
language itself.Java doesn't automatically convert from one
to the other.
Integer can be used as an argument for a method that
requires an object,where as int can be used for
calculations.

Is This Answer Correct ?    59 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is array dynamic in java?

936


What is the purpose of a volatile variable?

1062


What is the final access modifier in java?

1079


How many types of gc are there in java?

997


Why to use nested classes in java?

1120


What is void in java?

1081


How does hashset works in java?

1093


Explain runtime exceptions?

1178


What is a nested list?

966


Can you create an object of an abstract class?

1022


How can we create objects if we make the constructor private ?

1015


What are the concepts of 'OOPS'?

1075


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

1043


Which java ide is used the most?

1009


What is the tradeoff between using an unordered array versus an ordered array?

1241