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

Java Variables

What is Variable in Java? The variable is the basic unit of storage which holds the value while the program is executed. We can also say that it is a name given to the memory location. A variable is defined …

Read moreJava Variables