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

Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

932


What about features of local inner class?

1070


Can we override a variable in java?

1020


What is a superclass?

1351


How does java enable high performance?

1154


What methodology can be utilized to link to a database?

968


Is ruby built on java?

959


What are the methods available in a class?

1084


What is rule of accessibility in java?

1030


What is variable declaration and definition?

1005


What is a variable in java?

1138


What is the difference between compiler and jvm?

1055


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

989


Explain the difference between map and flatmap stream operation?

1272


What is a singleton factory?

957