How to decrease number of hashings in has

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you stop a thread in java?

587


Why singleton class is used in java?

566


What is static block?

586


List any five features of java?

564


Why are there no global variables in java?

580






Write a program to find the whether a number is an Armstrong number or not?

571


What is parse method?

533


What is locale in java?

571


What is the advantage of functional interface in java 8?

519


What is the difference between JVM and JRE?

616


What is the relationship between clipping and repainting under awt?

606


What is a super method?

530


What is finalize()?

604


State some advantages of java?

710


How do you convert boolean to boolean?

518