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

What is the difference between double and float variables in java?

851


How many techniques can be employed to create a string object?

792


What is lambda in java?

752


What is treeset in java?

749


When is update method called?

884


Write a java program for binary search?

796


What is scanner in java?

738


Is binary a low level language?

705


Is arraylist ordered in java?

772


What is final method?

816


What is an empty string in css?

768


Why set do not allow duplicates in java?

764


When throws keyword is used?

757


What is a method vs function?

751


In a class implementing an interface, can we change the value of any variable defined in the interface?

724