How to Create A Wapper Class in core Java and Why are Use in
java?

Answers were Sorted based on User's Feedback



How to Create A Wapper Class in core Java and Why are Use in java?..

Answer / tanmayy

We use wrapper classes in java so as to objectify the
primitive data types.There are certain wrapper classes for
different data types such as:-
int : Integer
float : Float
boolean : Boolean
etc...

Is This Answer Correct ?    16 Yes 0 No

How to Create A Wapper Class in core Java and Why are Use in java?..

Answer / srikanth

int i=100;
here we are converting primitive to wrapper object
Integer i=new Integer(i);

Is This Answer Correct ?    14 Yes 2 No

Post New Answer

More Core Java Interview Questions

Why doesn't the java library use a randomized version of quicksort?

0 Answers  


What will be the initial value of an object reference which is defined as an instance variable?

0 Answers  


What is the difference between call by reference and call by pointer?

0 Answers  


Can a class be private or protected in java?

0 Answers  


What is string example?

0 Answers  






What is difference between fileinputstream and filereader in java?

0 Answers  


Describe the syntax of multiple inheritance? When do we use such an inheritance?

0 Answers   Fidelity,


How to access arraylist elements in java?

0 Answers  


What is a website container?

0 Answers  


Can an interface be defined inside a class?

0 Answers  


What is an array and a vector? How they different from each other?

4 Answers  


what is associative array

1 Answers   Tech Mentro,


Categories