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

Is nullpointerexception checked or unchecked?

555


What is difference between fail-fast and fail-safe?

588


Difference between arraylist and hashset in java?

546


how to split string in java?

654


What are meta-annotations?

553






Compare overloading and overriding?

561


What do you understand by copy constructor in java?

492


Is it possible to use string in the switch case?

555


What are the rules for naming an array?

527


Can we use a default constructor of a class even if an explicit constructor is defined?

655


What are heap memory and stack memory and what are memory tables.

511


What is the final field modifier?

548


When is the finally clause of a try-catch-finally statement executed?

504


What is the use of parse function in java?

511


What are predefined functions?

578