What is the difference between abstraction and encapsulation in java?Abstraction and Encapsulation are the most important pillars of oops but they work differently. Abstraction means hiding the internal implementation and showing only the essential functionality to theMay 26, 2026·1 min read
What is interface?Interface is a special type of class in java that has only abstract method. And the abstract method is a method that has only method declaration not implementation. An interface is act like a blueprint of a class. To implement the abstract method we ...Jan 2, 2025·1 min read
What are the difference between abstract class and interface.Abstract class is like a normal class with some extra feature like inside the abstract class we can write abstract method as well as concreate method. Interface is also same like class but must contain only abstract method it does not contain any con...Jan 2, 2025·1 min read
What is Abstraction in java?Abstraction is a technique of hiding the internal detail and showing only the essential data to the user. We can achieve Abstraction by using two ways By using Abstract class : By using abstract class we can achieve 0 to 100% abstraction . It provi...Jan 2, 2025·1 min read
Type of Relation in java.In java basically we have two type of relation i.e. IS-A relation and HAS-A relation. Using inheritance concept we can achieve IS-A relation and by using Association we can achieve HAS-A relation in java. IS-A relation IS-A relation is a tightly coup...Dec 25, 2024·2 min read
JVM Architecture in detail ?JVM is stand for Java Virtual Machine. JVM is the layered structured architecture which is responsible for execution of java code. JVM Architecture includes components that are : CLASS LOADER SUBSYSTEDec 25, 2024·3 min read
What is variable hiding and variable shadowing and what are the difference between variable hiding and shadowing?Variable hiding —> Whenever the global variable and local variable is same then it is called as variable hiding. To overcome this issue we use this keyword to access the current variable. Variable shadowing —> When the subclass variable is same as pa...Dec 18, 2024·1 min read