Answer Posted / durga ganesh reddy
autoboxing is that the conversion of primitive data types
into wrapper class objects automatically.By using generic
types of java 1.5,we an acheive it easily.By declaring, the
collection classes as shown below we can do it.
HashSet<Integer> hs=new HashSet<Integer>();
hs.add(1);
hs.add(2);
Iterator it=hs.iterator(0;
while(it.hasNext())
System.out.println(it.next());
Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a window and a frame in java programming?
Can we have any code between try and finally blocks?
Can a set contain duplicates?
What is the use of predicate in java 8?
How does sublist works in java?
What is arguments in java?
explain the difference between jdk and jvm?
Explain the Propertie sof class?
What is meant by class loader? How many types are there?
Is the empty set a singleton?
What is array length in java?
Which programming language is most secure?
Write a factorial program using recursion in java?
What is the difference between object oriented programming language and object based programming language?
When should I use a singleton?