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

why the primitive data type have classes?

Answer Posted / ranganathkini

All of Java's primitive data types have an associated
Wrapper class. These wrapper classes provide useful
functions such as conversion or comparisons most of which
are used by Java implicitly.

Also a wrapper serves as a container for primitive values in
conditions where a reference type is expected.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a class subclass of itself?

1034


What are keyboard events?

1102


What does super keyword do?

1030


Can we force the garbage collection to run?

902


What is java used for?

979


What is lazy programming?

970


What is memory leak and how does java handle it?

938


What are disadvantages of java?

962


Why constructor has no return type?

1054


How do you create a first line indent?

948


Is string a wrapper class?

975


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

1173


What exactly is java?

895


Does java support multiple inheritance or not?

1027


What are alternatives to java serialization?

1061