how can i use a nonsynchronized hashtable?
No Answer is Posted For this Question
Be the First to Post Answer
Can we force garbage collector to run ?
Can we nested try statements in java?
Discuss different types of errors that generally occur while programming.
Howmany address lines are required to addressing 1 MB memory?
8 Answers Beatroot Technologies, CSC, HCL, Hexaware, IBM,
What is an 8 bit word?
What is a method type?
Why set do not allow duplicates in java?
What is argument in java?
How does arraylist size increase in java?
What is difference between filereader and bufferedreader?
Hi Friends, can u give code to convert ArrayList to HashMap and HashMap to ArrayList.
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }