what is Hashmap & Hashtable wirh example?

Answer Posted / leosun

Hashtable will not allow null key nor values,where as
Hashmap allows null key and values

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why string is not a wrapper class?

646


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2243


Why do we need variables?

532


What is an object's lock and which object's have locks in java programming?

571


Explain the importance of finally block in java?

570






Difference between vector and arraylist.

585


Can we convert stringbuffer to string?

567


Difference between keyword and identifier.

597


What is comparable and comparator interface? List their differences

583


Explain about public and private access specifiers?

540


How large is a boolean?

560


What type of value does sizeof return?

543


What is run time allocation?

579


What is the purpose of an interface?

561


What is difference between classpath and path variables in java?

560