How to decrease number of hashings in has



How to decrease number of hashings in has..

Answer / gajendra

Specifying the initial capacity and load factor at the time
of declaration of Hashtable/HashMap will decrease the
number of hashings.

Hashtable ht=new Hashtable(15,0.75);

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can you change array size in java?

0 Answers  


Explain your academic project?

2 Answers   Accenture, Levonsys, SDF, TCS, Tech Mahindra,


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

1 Answers   Microsoft, Wipro,


Can Applet have constructors?

5 Answers   Infosys,


Explain the difference between call by refrence and call by value?

0 Answers  






What is the synchronized method modifier?

0 Answers  


What is a “stateless” protocol ?

0 Answers  


Explain an intermediate language?

0 Answers  


Explain about anonymous inner classes ?

0 Answers  


What are the main uses of this keyword?

0 Answers  


Define inheritance with reference to java.

0 Answers  


When will you define a method as static?

0 Answers  


Categories