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 impact of declaring a method as final?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is the difference between Java1.4 and Java1.5
What is scanner in java?
What is variable argument in java?
How are the elements of a gridbaglayout organized?
Why we cannot override static method?
How do I print a “?
What are advantages and disadvantages of OOPs?
What is use of super keyword in java?
What is bifunction in java?
What is stored procedure. How do you create stored procedure ?
What is boolean query?
Explain importance of inheritance in java?
Why java strings are immutable in nature?