Currently browsing tag

Java Basics, Page 4


HashMap in Java

HashMap uses the hash table to implement the Map interface. Map is key-value pair where key is the reference and value is …


HashSet in Java

HastSet is one of the classes available with collections package and it extends the AbstractSet and implements the Set interface. This uses …


LinkedList in Java

LinkedList is not most commonly used class for storing the values. The LinkedList class extends AbstractSequentialList and implements the List interface. It stores …


ArrayList in Java

ArrayList is most widely used collections API for storing the list of objects. This class is equivalent to Vector, except that it …


Runtime Exceptions in Java

Runtime exceptions are need not be handled by the programs. Generally RuntimeExceptions are exceptions that can be prevented programmatically.E.g NullPointerException, ArrayIndexOutOfBoundException. If …


Exception Handling in Java

Exception handling is one of the important task for every programmer. For a successful project completion, proper exception handling is important. Exception …


Constructor in Java

Constructors are special type of methods that are invoked at the time of creating the objects. If you use new keyword for …

Pin It on Pinterest