Category Archives

Shadowing of static functions in Java

In Java, if the name of a derived class static function is the same as a base class static...

Shadowing of static functions in Java

In Java, if the name of a derived class static function is the same as a base class static...

Can we Overload or Override static methods in java ?

Let us first define Overloading and Overriding. Overriding: Overriding is a feature of OOP languages like Java that is...

Can we Overload or Override static methods in java ?

Let us first define Overloading and Overriding. Overriding: Overriding is a feature of OOP languages like Java that is...

Overriding in Java

In any object-oriented programming language, Overriding is a feature that allows a subclass or child class to provide a...

Overriding in Java

In any object-oriented programming language, Overriding is a feature that allows a subclass or child class to provide a...

Overloading in Java

Overloading allows different methods to have the same name, but different signatures where the signature can differ by the...

Overloading in Java

Overloading allows different methods to have the same name, but different signatures where the signature can differ by the...

this keyword in java

1. Using ‘this’ keyword to refer current class instance variables //Java code for using 'this' keyword to //refer current...

this keyword in java

1. Using ‘this’ keyword to refer current class instance variables //Java code for using 'this' keyword to //refer current...

Access Modifiers in Java

As the name suggests access modifiers in Java helps to restrict the scope of a class, constructor, variable, method,...

Access Modifiers in Java

As the name suggests access modifiers in Java helps to restrict the scope of a class, constructor, variable, method,...

Access and Non Access Modifiers in Java

Access Modifiers : Java’s access modifiers are public, private, and protected. Java also defines a default access level (called...

Access and Non Access Modifiers in Java

Access Modifiers : Java’s access modifiers are public, private, and protected. Java also defines a default access level (called...

Association, Composition and Aggregation in Java

Association Association is relation between two separate classes which establishes through their Objects. Association can be one-to-one, one-to-many, many-to-one,...

Association, Composition and Aggregation in Java

Association Association is relation between two separate classes which establishes through their Objects. Association can be one-to-one, one-to-many, many-to-one,...

Dynamic Method Dispatch or Runtime Polymorphism in Java

Method overriding is one of the ways in which Java supports Runtime Polymorphism. Dynamic method dispatch is the mechanism...

Dynamic Method Dispatch or Runtime Polymorphism in Java

Method overriding is one of the ways in which Java supports Runtime Polymorphism. Dynamic method dispatch is the mechanism...