what is wrapper class and its uses?

Answer Posted / guru

wrapper class used access the primitive data types as objects.
we cant store primitive data in arraylist,hashtable so we
using wrapper class used to store primitive data types as
objects,caz objects only can store in collections

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How listener identify that the event came from a particular object?

1459


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

544


Which is the best sorting technique in java?

515


How can an object be unreferenced?

536


What is the difference between equals() and == in java?

517






What is <> used for in java?

663


Can we make a constructor final?

531


What is the purpose of methodology?

631


How do you use parseint in java?

507


What are singleton services?

485


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

1795


What Is Composition?

571


What is the difference between normal report & matrix report?

558


What are the supported platforms by java programming language?

555


What is the use of put method?

512