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 the difference between the methods sleep() and wait()? : Java thread

0 Answers  


What is a super method?

0 Answers  


What does nextint () do in java?

0 Answers  


Can we write multiple catch blocks under single try block?

0 Answers  


What is immutable in java?

0 Answers  






Explain the features of java?

0 Answers  


What is the difference between assignment and initialization?

0 Answers  


What is meant by string is immutable?

0 Answers  


Any one can explain how the inerface uses in java. give with example.

1 Answers   IBM,


What is static synchronization?

0 Answers  


What is thread priority?

1 Answers   Tech Mahindra,


What does \ mean in regex?

0 Answers  


Categories