#java
Read more stories on Hashnode
Articles with this tag
An exception is an unwanted or unexpected event that occurs during the execution of the program that disrupts the normal flow. class Test { public...
"this" keyword is the reference variable that refers to the current object Consider the code below: class Test { int i; void setValue(int x) ...
Encapsulation is a method of wrapping data and methods together as a single unit. In encapsulation, the variables of a class are hidden from other...
Abstraction is hiding the internal implementation and just highlighting the setup service that we are offering. As in the case of a car, relevant...
Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance. There are two types of...
There are mainly two types of relationships between classes in JAVA Inheritance (IS-A) Association (HAS-A) Inheritance In inheritance, the child...