what is wrapper class and its uses?

Answer Posted / guru

wrapper class used access the primitive data types as objects.
we cant store primitive data in arraylist,hashtable so we
using wrapper class used to store primitive data types as
objects,caz objects only can store in collections

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the intersection and union methods?

799


How to sort an unsorted array in java?

877


Can we declare an array without size in java?

732


What is a local block?

906


Can we force garbage collector to run ?

784


Does a function need a return?

758


worst case complexities of Quick sort and Merge sort.

808


Explain try and catch keywords in java?

897


Can you call one constructor from another if a class has multiple constructors?

800


List the features of java programming language.

793


When should you use arraylist and when should you use linkedlist?

716


What is a substitution variable?

813


What does java ide mean?

850


What modifiers may be used with an inner class that is a member of an outer class in java programming?

783


How do you escape sequences in java?

822