Skip to content

Tag Archives: Java-Object Oriented

The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more… Read More
Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features(fields… Read More
Object-oriented programming: As the name suggests, Object-Oriented Programming or OOPs refers to languages that use objects in programming. Object-oriented programming aims to implement real-world entities… Read More
Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in Java by which one class is allowed to inherit the features… Read More
Inheritance: When we want to create a new class and there is already a class that includes some of the code that we want, we… Read More
Encapsulation in Java Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and… Read More
Problem Statement: The problem is to design a Chess Game using Object Oriented Principles. Asked In: Adobe, Amazon, Microsoft, etc. Solution: These type of questions… Read More
The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more… Read More
In this article we discuss the Cloneable interface that indicates that a class has provided a safe clone() method. To understand what cloning means recall… Read More
Java is a pure OOPS concept based programming language. Hence in Java, all the variables, data and the statements must be present in classes. These… Read More
Pre-erquisite: Convert Java Object to Json String Using GSON JSON Stand for JavaScript Object Notation. It’s a standard text-based format which shows structured data based… Read More
Object-oriented programming: As the name suggests, Object-Oriented Programming or OOPs refers to languages that uses objects in programming. Object-oriented programming aims to implement real-world entities… Read More
A concrete class is a class that has an implementation for all of its methods. They cannot have any unimplemented methods. It can also extend… Read More
Abstract Class: An abstract class is a type of class in Java that is declared by the abstract keyword. An abstract class cannot be instantiated… Read More
Prerequisite: Exception and Exception Handling in Java, Overriding in Java, Checked and Unchecked Exception. An Exception is an unwanted or unexpected event, which occurs during… Read More