List of article on Archieve

Creating a Thread in Java with Example

Threads as we have discussed are light- weight smallest part of process that can perform tasks simultaneously with other threads of the same process. In this article we will discuss how to create thread with examples in Java. There are two ways by which thread can be created in Java: By extending Thread class By … Continue reading Creating a Thread in Java with Example

Method Overloading vs Method Overriding In JAVA

In this section we are going to discuss the difference between method overloading and method overriding. Firstly understand the definition of both terms in brief: Method overloading refers to a concept in which we have more than one method with a same name but differ in the number or types of parameters within a same … Continue reading Method Overloading vs Method Overriding In JAVA

Interface vs Abstract Class In JAVA

An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface. On the other hand, abstract class refers to the class that contains atleast one abstract method must be declared abstract. Interfaces and abstract classes both implements polymorphic … Continue reading Interface vs Abstract Class In JAVA

Static Keyword In Java With Examples

Static keyword in java is mainly used to save memory as with the help of static we can declare data one time and access it in a whole program where we need the same data more than one time in a program. After creating static keyword there is no need to declare that data again … Continue reading Static Keyword In Java With Examples