Author name: Neeraj Mishra

Difference between Throw and Throws in Java

In this tutorial you will learn about difference between throw and throws keywords in java with example. When we run a java program which contains errors, programmers should handle errors by exception handling (using try, catch and finally blocks) or avoid (throw) it. Otherwise JVM will give error which causes the termination of the running …

Difference between Throw and Throws in Java Read More »

Difference between Hashtable and HashMap in Java

Here you will learn about difference between Hashtable and HashMap in Java. Both Hashtable and HashMap are data-structure based upon hashing and implementation of Map interface, and almost seems to be similar but there is significant difference between both which is described as follows. Characteristic Hashtable HashMap Synchronization Hashtable is  synchronized internally. Synchronization means that …

Difference between Hashtable and HashMap in Java Read More »