Abstraction in Java

Data abstraction is the process of hiding the details but only displaying the relevant information to the users, which means hiding the implementation details and displaying only its functionalities. This is one of the main advantages of using abstraction. Abstraction …

Read moreAbstraction in Java

Java – Types of Inheritance

Java supports three types of inheritance on the basis of class: single, multilevel, and hierarchical. Whereas multiple and hybrid inheritance is supported through interface only. Types of Inheritance in Java: Single Inheritance Multilevel Inheritance. Hierarchical Inheritance. Multiple Inheritance. Hybrid Inheritance. 1. Single …

Read moreJava – Types of Inheritance

Java Encapsulation

Encapsulation is one of the four fundamental OOP concepts. Encapsulation in Java is defined as the wrapping up of data(variable) under a single unit. The use of Encapsulation is to make sure that implementation detail or we can say sensitive data is …

Read moreJava Encapsulation

Java – Inheritance

It is one of the main features of Object-Oriented Programming (OOP). Inheritance is one of the processes or mechanisms in OOP in which one class(sub-class) acquires the properties(data members) and functionalities(methods) of another class(parent-class). Importance of Inheritance: For Code Reusability. For Method …

Read moreJava – Inheritance

Java – Data Types

What are Data Types in Java? Data types specify the varying sizes and values in the variables that can be stored. That is every variable is assigned by data-types according to the need. And based on their respective data-types, the operating system …

Read moreJava – Data Types