List of article on Archieve

HashMap Methods Tutorials in Java With Examples

HashMap is a one-to-one relationship between one object and other object. Let us take a real life example of hash map for better understanding of this concept: Let’s assume you want to open your email account. But to do that you’re taken to a login screen where you type in your username and password. When the combination … Continue reading HashMap Methods Tutorials in Java With Examples

Constructor Chaining In Java With Example

Constructor Chaining is a process of calling the one constructor from another constructor with respect to current object. Whenever we want constructor to duplicate some of the behavior of an existing constructor we use constructor chaining. In the same class referring to another constructor we use this as the method name, followed by appropriate arguments … Continue reading Constructor Chaining In Java With Example

Vector All Methods In Java With Examples

Vector is a type of data structure that maintains insertion order, that is elements are retrieved in same order as they are added into it. It is very much similar to ArrayList. Vector Methods In JAVA: Vector contains many legacy methods that are not part of collection framework which we will discuss below with examples in … Continue reading Vector All Methods In Java With Examples

Static Variable With Example In JAVA

Any variable when declared with the keyword “static” is known as static variable or class variable in JAVA. Static variable is used to fulfill the common properties of all objects. For example: institute name of students is common for all students so it will be declared as static variable in JAVA. The static variable gets … Continue reading Static Variable With Example In JAVA