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

What are wrapper classes?

Answer Posted / guest

The wrapper classes can take constructors of either the
type they are designed to wrap or of a String that can be
converted to that type. Thus the Integer class can take a
number that could be contained by an int, but an error will
occur if you try to pass a number with a floating point
component. Remember that the wrapper classes are just that
classes, they are not primitives and instances of the
wrappers can only be manipulated in the same way as any
class. You may get questions on the exam with code that
uses standard math operations to manipulate instances of
wrappers. You can of course use the + operator where it
would implicitly call the toString method, but as soon as
you see the - * or % operator, beware.

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is finalize() similar to a destructor?

1022


Difference between final and effectively final ? Why is effectively final even required ?

986


What is anonymous inner class?

1082


What is abstract class constructor called?

1001


Where can I find jdk in my computer?

966


Is java se free?

935


How dead lock situation occurs in java and how you can identify it?

992


Is 9 a prime number?

885


What is the type of lambda expression?

1023


Where are the local variables stored?

1071


What if constructor is protected in java?

1116


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

974


What are the advantages of java over C++?

1198


Explain reverse a linked list recursive java solution?

983


Why we override equals() method?

1033