Prerequisite: Threading, Synchronized Block, and volatile Keyword Happens-before is a concept, a phenomenon, or simply a set of rules that define the basis for reordering… Read More
Tag Archives: Java-Object Oriented
Here we will be discussing why should we prevent method overriding in java. So, before going into the topic, let’s give a look at the… Read More
The @Override annotation is a standard Java annotation that was first introduced in Java 1.5. The @Override annotation denotes that the child class method overrides… Read More
Inheritance, as we have all heard is one of the most important features of Object-Oriented Programming Languages whether it is Java, C++, or any other… Read More
Our aim is to understand and implement Control Abstraction in Java. Before jumping right into control abstraction, let us understand what is abstraction. Abstraction: To… Read More
Favoring Composition over Inheritance is a principle in object-oriented programming (OOP). Classes should achieve polymorphic behavior and code reuse by their composition rather than inheritance… Read More
Method overriding in Java is when a subclass implements a method that is already present inside the superclass. With the help of method overriding we… Read More
Inheritance is a substantial rule of any Object-Oriented Programming (OOP) language but still, there are ways to prevent method overriding in child classes which are… Read More
Typecasting is the assessment of the value of one primitive data type to another type. In java, there are two types of casting namely upcasting… Read More
Association is the relation between two separate classes which establishes through their Objects. Composition and Aggregation are the two forms of association. In Java, a… Read More
Class loading means reading .class file and store corresponding binary data in Method Area. For each .class file, JVM will store corresponding information in Method… Read More
This article will explain how Instance Control Flow takes place whenever objects are created. Instance Control Flow In Normal Class Whenever we are executing a… Read More
Abstraction by Parameterization and specification both are important methods in Java. We do this in hope of simplifying our analysis by separating attributes and details… Read More
Abstraction Is hiding the internal implementation and just highlight the set of services. It is achieved by using the abstract class and interfaces and further… Read More
The composition is a design technique in java to implement a has-a relationship. Java Inheritance is used for code reuse purposes and the same we… Read More