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 / aditya mohata

These classes are Wrapper classes.We hav them as we cant
pass an primitive directly through an method to different
class.So we need wrapper classes to convert them to their
already defined classes.Send them n again unpack them.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you do absolute value in java?

985


How to implement an arraylist in java?

1163


How do you sort in java?

990


How are java objects passed to a method and what are native methods?

1083


If you do not want your class to be inherited by any other class. What would you do?

1007


How is tree Mirroring implemented?

1081


Is 0 an even number?

985


What is the purpose of javac exe?

1098


What are the classes of java?

970


Can an interface implement another interface?

1041


Tell me a few examples of final classes defined in Java API?

1099


What are the main features of java?

972


What happens if constructor is private?

1034


What is the reason behind using constructors and destructors?

1065


Why is it important to initialize a variable?

998