Interface in java programming language In this tutorial, we will discuss the Interface in Java programming language An interface in Java similar a class but it is not a class. It is the blueprint of a class. An interface can contain any number of data-members and methods with an empty implementation. A Java interface…
Category: java
Inheritance in Java programming language
Inheritance in Java programming language In this tutorial, we will discuss the subject of Inheritance in Java programming language Inheritance is one of the most effective concepts or feature of Oop paradigm. This helps to establish a link or connectivity between two or more classes. Inheritance helps to access properties(State and behaviours) and methods of…
Multilevel inheritance in Java language
Multilevel inheritance in Java language In this tutorial, we will discuss the subject of Multilevel inheritance in Java language Already, we have looked at multilevel inheritance in Inheritance in Java. Multilevel inheritance is one a concept in Java inheritance. A base class is inherited by a intermediate class and this derived class is inherited by…
Single level inheritance in Java language
Single level inheritance in Java language In this tutorial, we will discuss the concept of single-level inheritance in Java language Single level inheritance is one of the techniques in Java. It is easy to understand, a class acquires the properties of (data members and methods) another class. The diagram below indicates that class B extends…
Hierarchical inheritance in java language
Hierarchical inheritance in java language In this tutorial, we will discuss the subject of Hierarchical inheritance in java language Hierarchical inheritance is when multiple classes inherit from a single class. There are one parent (super) class and many children(sub) classes. Hierarchical inheritance is supported in Java. In the example below, class B, class C and…
Constructor overloading in Java language
Constructor overloading in Java language In this tutorial, we will discuss the subject of Constructor overloading in Java language Constructor overloading Constructor overloading is one of the techniques in Java. A Java class can have any number of constructors that is different in the parameter. As the constructor has the same name of the class…
Constructor in Java programming language
Constructor in Java programming language In this tutorial, we will discuss the concept of Constructor in Java programming language. Constructor is a group of codes which are similar to a method. Purpose of the constructor is to create an object(instance)in a class. We may perceive constructor as a special type of method. A constructor must…
Method overloading in Java language
Method Overloading in Java language In this tutorial, we will discuss the concept of method overloading in Java language. Method overloading is one of the features of Java which helps the methods with the same name. Java may contain many methods with the same name but with different parameter list. What are the different of parameter…
if condition programs example in Java
if condition programs example in Java In this article, we will discuss the if condition programs example in Java How to write small programs using if else statement in java If condotion is a booleam expression can be use check condition in many programming languages for software development similar, C, C++, php etc… for write…
Nested if else in Java programming language
Nested if else in Java programming language In this article , we will discuss the Nested if else in Java programming language Nested if statement Nested if-else statement,which means use one if – else statement inside another if – else statement. Inside means if body or else body. One or more condition are evaluated by…