Difference between Abstraction and Encapsulation in Java with Examples
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 »
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 »
Object oriented design started right from the moment computers were invented. Programming was there, and programming approaches came into the picture. Programming is basically giving… Read More »
Data Abstraction is the property by virtue of which only the essential details are displayed to the user.The trivial or the non-essentials units are not… Read More »
abstract is a non-access modifier in java applicable for classes, methods but not variables. It is used to achieve abstraction which is one of the… Read More »
Association Association is relation between two separate classes which establishes through their Objects. Association can be one-to-one, one-to-many, many-to-one, many-to-many. In Object-Oriented programming, an Object… Read More »
Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it… Read More »