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

what is Hashmap & Hashtable wirh example?

5 Answers   CTS, Saksoft,


What is the generic class?

0 Answers  


What 4 doubled?

0 Answers  


What are keywords and reserved words in java?

0 Answers  


Why string is immutable with example?

0 Answers  






What is unicode datatype?

0 Answers  


Explain access specifiers?

0 Answers   Thomson Reuters, Virtusa,


What is the range of the char type?

3 Answers  


What is the default initialized value of a boolean type variable?

3 Answers  


What is mean by exception?

0 Answers  


What is the benefit of inner classes in java?

0 Answers  


What is an object’s lock and which object’s have locks?

0 Answers  


Categories