Exception Handling in Java language In this tutorial, we will discuss the concept of Exception handling in Java language. Exception handling is one of the important, most useful and powerfull mechanism to handle the runtime error in Java. We will discuss the five keywords for exception handling in Java. What is an exception? An exception…
Category: java
Method overriding in Java language
Method overriding in Java language In this tutorial, we will discuss the concept of method overriding in Java language. We have already looked at method overloading in Java. Now, we will learn method overriding in Java. Method overriding looks like method overloading with some difference. When a subclass has the same method as the one declared…
Encapsulation in Java programming language
Encapsulation in Java programming language In this tutorial, we will discuss the concept of the Encapsulation in Java programming language Encapsulation is one of the most important concepts of Oop programs. Other some Oop concepts are inheritance, polymorphism and abstraction Basically, It is used for security purposes in Java. We can use it in ATM, password…
Interface in Java programming language
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…
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…