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

Why vector is used in java?

962


What is r * in math?

935


How do I run java on windows?

1084


Where is the singleton class used?

965


When super keyword is used?

970


How do you escape sequences in java?

1006


If we don’t want some of the fields not to serialize how to do that?

955


Why we use methods in java?

938


How many bytes is a char in java?

968


What is the use of runnable interface?

1085


What is output buffer?

973


What are the difference between composition and inheritance in java?

958


What is the use of flag?

1019


How is a structure different from array ?

991


What is sizeof () operator?

921