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

How many java versions are there?

0 Answers  


What are the methods available in a class?

0 Answers  


What is the return type of readLine() when end of a file is reached?

2 Answers  


what is collections in java?

4 Answers  


What is this () in java?

0 Answers  






What is the difference between throw and throws? What is the similarity between try and throw?

2 Answers  


Is a method a procedure?

0 Answers  


What exactly is a .class file?

0 Answers  


Can we use switch statement with strings?

0 Answers  


What is sizeof in java?

0 Answers  


How do you create a first line indent?

0 Answers  


What is super keyword explain with example?

0 Answers  


Categories