Abstract class in Java programing language In this tutorial, we will discuss the OOP concept of abstract class in Java programing language. Abstraction is one of the Oop concepts. A class that contains at least one abstract method is known as an abstract class. The abstract class is a class which contains at least one…
Category: Learn java
Exception Handling in Java language
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…
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…
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…
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…
Switch case statement in Java language
Switch case statement in Java language In this tutorial, we will discuss the concept of the Switch case statement in Java language In this post, we will learn how to use the switch case statement in java language The switch statement is one of the java statement allows a unique variable to be checked for…