• Explain Wrapper Class?
• What is its use?
• Mention it's example.
• Write a short program to demonstrate the use of each method of the example you have stated.
Programming Language: Java
Class: 10
[ Want an answer in simple but proper words ]
Answers
Answered by
0
Answer:
The class that converts primitive data type into itscorresponding object types and vice versa is known as wrapper class.
In other words a wrapper class wraps or encapsulates data type from the eight primitive data type
NOTE:*WRAPPER CLASS OBJECT MUST BEGIN WITH CAPITAL LETTER*
for eg:-Byte,Short
Answered by
0
Answer:
this is used to convert data types into objects in Java language.
we can wrap a primitive value into a wrapper class object.
The eight primitive data types byte, short, int, long, float, double, char and boolean are not objects, Wrapper classes are used for converting primitive data types into objects, like int to Integer etc.
Similar questions