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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an eror in java?

799


What is yield () in java?

665


What is the difference between compare and compareto in java?

705


Write a program to print all permutations of string?

903


What is the difference between Java1.4 and Java1.5

2057


Is char a data type in java?

746


What is the right data type to represent a price in java?

757


What is functional interface in javatpoint?

719


What is the difference between static and non-static variables in java programming?

705


What is static block?

789


Define jre i.e. Java runtime environment?

779


How many types of memory areas are allocated by jvm?

769


How can you read content from file in java?

799


Are global variables initialized to zero?

709


How can an object be unreferenced?

753