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

Do I need java for windows 10?

1089


How to write custom exception in java?

1106


What are the new features in java 8? Explain

997


Why is the type for real numbers called double?

1013


How do you add an element to a hashset in java?

1054


What is a heavyweight component?

1071


What is the function of java?

1052


Can we override the private methods?

1057


How to display arraylist values in java?

1064


What is a super method?

1017


How does compareto method work?

1018


What is ‘has a’’ relationship in java?

1275


Can we extend a class with private constructor?

1066


Give me example of derived data types.

1204


What’s the difference between applets and standalone program?

1101