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 singleton class example?
What is console based application in java?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
What is the best way to findout the time/memory consuming process?
What is the purpose of the enableevents() method?
Is string thread safe in java?
Java is Pass by Value or Pass by Reference?
Why do we need autoboxing in java?
What is mnemonic code?
Write a function to print Fibonacci series and Tribonacci series?
Why is java not 100% pure oops?
Is it possible to compare various strings with the help of == operator?
What is space character in java?
What is the difference between jdk and jre?
What is the difference between applet and application?