What is meant by wrapper classes?

Answer Posted / vishnu

Wrapper class is a wrapper around a primitive data type. It
represents primitive data types in their corresponding class
instances e.g. a boolean data type can be represented as a
Boolean class instance. All of the primitive wrapper classes
in Java are immutable i.e. once assigned a value to a
wrapper class instance cannot be changed further.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override static methods in java?

591


Is heap stored in ram?

526


What is the difference between yield() and sleep()?

541


What is flag in python?

555


What is the largest long allowed by java?

537






Why do we create public static method in java?

581


What is java autoboxing?

539


What does java stand for?

555


What is difference overloading and overriding?

579


What does substring mean?

514


What are the advantages of java over C++?

717


What are reference variables in java?

596


Mention a package that is used for linked list class in java.

527


Is 0 a prime number?

572


How do you compare values in java?

546