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
Write a program to find the whether a number is an Armstrong number or not?
When would you use a static class?
What is the basic concept of java?
what is the volatile modifier for? : Java thread
Can a abstract class be declared final?
Can a static method be final?
What are the restrictions imposed on method overriding?
Can finally block be used without a catch?
What are the advantages of java inner classes?
How do you reverse a string in java without using string buffer?
What are the different ways of implementing thread? Which one is more advantageous?
Can java list be null?
Is empty set an element of empty set?
What is use of a abstract variable?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.