What are wrapper classes?

Answer Posted / irshad ahmad

Wrapper classes are classes that are used to make primitive
data types into objects, and to make wrapped objects into
primitives because

As we know that vector in java can hold only object; but
can't directly store primitive data types, like int,float,
char, long, double. therefore we need to convert simple data
type to object. This can we done using wrapper classes.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What methods are used in Servlet?Applet communication?

1941


Is java code slower than native code?

794


What is the difference between the final method and abstract method?

810


What is the collection interface?

831


What is java autoboxing?

756


What is the string function?

773


How does java enable high performance?

946


Describe what happens when an object is created in java ?

796


what is enumset?

829


Why do we use string?

800


Say any two properties in beans?

835


Explain what are final variable in java?

827


What is dynamic array in java?

788


Can we sort set in java?

768


What is lambda programming?

732