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

Write POJO class as a key to hashmap???

2 Answers  


What is constructor and virtual function?

5 Answers  


What are the operands of instanceof operator?

3 Answers  


What is main function purpose?

0 Answers  


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

0 Answers  


What is the difference between the paint() and repaint() methods?

0 Answers  


Explain a situation where finally block will not be executed?

0 Answers  


Is static a keyword in java?

0 Answers  


What is abstraction in java?

0 Answers   Akamai Technologies,


What are static variables and functions?

0 Answers   Tech Mahindra,


How will you invoke any external process in java?

0 Answers  


What is a stringbuilder?

0 Answers  


Categories