Java OOPs Concepts

we will help you to understand about Java OOP’S concepts with examples. oops concepts in java

Interfaces Multiple Inheritance Java

We know earlier, Java does not support multiple inheritance, basically. But to support multiple inheritance, partially, Java introduced "interfaces". An interface is not altogether a new one for us; just it is a special flavor of abstract class where all methods are abstract. That is, an interface contains only abstract methods. Syntax of multiple inheritance …

Interfaces Multiple Inheritance Java Read More »

Constructors and Constructor overloading

A constructor looks more like a method but without return type. Moreover, the name of the constructor and the class name should be the same. The advantage of constructors over methods is that they are called implicitly whenever an object is created. In case of methods, they must be called explicitly. To create an object, …

Constructors and Constructor overloading Read More »

Access Specifiers Modifiers Java

Access Specifiers Modifiers are different. Specifier specifies access and modifier modifies access. A very confusing for a Beginner. Expalained Simple terms. Java supports both specifiers and modifiers that can dictate the access. An access specifier can be applied to any identifier like variables, methods and classes but modifiers cannot be applied to every identifier, there …

Access Specifiers Modifiers Java Read More »

Java Abstract Class Tutorial Example

Java Abstract Class Tutorial Example Summary: By the end of this tutorial "Java Abstract Class Tutorial Example", you will be comfortable to practice abstract methods and abstract classes. abstract Modifier You have seen earlier two access modifiers – static and final. Now let us go for another modifier "abstract". "abstract" modifier (and also keyword) can …

Java Abstract Class Tutorial Example Read More »

final Keyword Java Examples Screenshots

final Keyword Java After going through "static" and "super" keywords, let us go another keyword "final". These three keywords, known as access modifiers, are used very often in Java code. The final keyword behaves very differently when applied to variables, methods and classes. Even though its functionality (purpose) is different in the three contexts, but …

final Keyword Java Examples Screenshots Read More »

Types of Inheritance Tutorial Java

Types of Inheritance There exists basically three types of inheritance. Multilevel inheritance Multiple inheritance Hierarchical inheritance 1. In single inheritance, one class extends one class only. In multilevel inheritance, the ladder of single inheritance increases. 2. In multiple inheritance, one class directly extends more than one class. 3. In hierarchical inheritance one class is extended …

Types of Inheritance Tutorial Java Read More »

OOPS concepts Tutorial

OOPS concepts Tutorial Summary: By the end of this tutorial "OOPS concepts Tutorial", you will understand the meaning of OOPS concepts. Three basic concepts of OOPS Abstraction Encapsulation Polymorphism 1. Abstraction Abstraction means using the equipment (or code) without knowing the details of working. For example, you are using your mobile phone without knowing how …

OOPS concepts Tutorial Read More »