Interfaces in Java

Class:               Complete definition of Object (Only Concrete methods are allowed) Abstract class:             Partial definition of Object (Both Concrete & Abstract methods are allowed) Interface:         Complete specification (declaration) of Object (Only abstract methods …

abstract and final in java

Can an abstract class be final? If final – cannot be extended If abstract – must be extended Then final & abstract – become illegal combination of modifiers. A method cannot be abstract & final. …

Abstract class object creation java

How can we create object for abstract class? Every abstract class need extension(Child class). Extended class must override(implement body) for abstract methods. By instantiating Child class, we can access Parent(abstract) class functionality. How can we …

Abstraction in java

Abstraction: Abstraction is the concept of hiding un-necessary details of Object and shows only essential features in communication process. Abstraction describes “What an object can do instead how it does it?”. Abstraction is the “General …

final in java

final: It is a keyword or modifier. Final member is constant, hence cannot be modified. Final is used to set restrictions on object updations. We can apply final to class, variable and method. Class is …

super() method in java

super(): super() is used to access Parent class constructor from the child class. It is used to initialize Parent object from Child. We must use super() method inside the child class constructor only. Call to …

super in java

super: this super It is a keyword It is a keyword It is a pre-defined non static variable It is a pre-defined non static variable It is used to access current object(class) functionality It is …

Hierarchical inheritance in java

Hierarchical Inheritance: Sharing the properties of Object to multiple child objects. Accessing overridden method of Parent class: Note: In the above application, we create Parent class object separately to call Parent class functionality. In Child …

Method overriding in Java

Method Overriding: Defining a method in Child with the same name and signature of its Parent class. Advantage of Method overriding: Overriding is the concept of updating the functionality of Parent object from Child. We …

Multi level inheritance in java

Multi-Level inheritance: Accessing class members in more than one level of hierarchy. Using child class object, it is possible to access the complete functionality of all the objects in the hierarchy. In the process of …

Courses Enquiry Form