Hi Friends, Can u give few interview questions which relates
ArrayList and Hashmap. I mean how to link ArrayList and
HashMap.I know this is not good way of asking questions like
this , but i need
Answer / murali,25@gmail.com
HashMap stores key-value pairs. Alternate approach is to have a plain java class with key,value as attributes.
class HashMapAlternate{
Object key;
Object value;
}
You can create objects of HashMapAlternate and store it in arraylist. But HashMap is a better solution because it uses hashing and collision resolution technique which speeds up lookup when number of objects are very large.
| Is This Answer Correct ? | 2 Yes | 0 No |
how to print output with out using sop statements
What is the use of http-tunneling in rmi?
what is the volatile modifier for? : Java thread
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet
What is the final access modifier in java?
What is design pattern and there types?
What does you mean in math?
How do you convert boolean to boolean?
What is a J2EE component? List out all the component?
Why synchronization is important in java?
What is java jit compilers?
What is java objectoutputstream?