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

How many inner classes can a class have?

588


How do you clear a method in java?

547


What is an exception in java?

656


What is the final blank variable?

600


What is the function of static in java?

547






how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

602


Why is string builder not thread safe?

599


What is treeset in java?

553


How many decimal digits is 64 bit?

538


Explain about static nested classes in java?

615


What do negative exponents mean?

554


What is an empirical question?

546


What does \ mean in regex?

628


What are the four corner stones of oop?

553


Write a program to check string is palindrome without using loop?

576