

Polymorphism: The polymorphism is the ability to appear in many forms.

It facilitates the reusability of the code. We can achieve inheritance by using the extends keyword. Inheritance: Inheritance is the mechanism in which one class acquire all the features of another class. In Java, Java bean is a fully encapsulated class. In Java, we use abstract class and interface to achieve abstraction.Įncapsulation: An encapsulation is the process of binding data and functions into a single unit. We can make a class abstract by using the keyword abstract.
#PAINTBOARD JAVA HOW TO#
For example, the driver only knows how to drive a car there is no need to know how does the car run. Data fields with their current values represent the state of an object (also known as its properties or attributes).Ībstraction: An abstraction is a method of hiding irrelevant information from the user. An object has a unique behavior, identity, and state.

For example, a desk, a circle can be considered as objects. Object: An object is a real-world entity that can be identified distinctly. We can define a class by using the class keyword. In OOPs, we create programs using class and object in a structured manner.Ĭlass: A class is a template or blueprint or prototype that defines data members and methods of an object. It is easier to develop a program by using an object. Object-oriented programming is a way of solving a complex problem by breaking them into a small sub-problem. OOPs (Object Oriented Programming System) It means to handle more than one job a time.
#PAINTBOARD JAVA CODE#
Portable: Java Byte code can be carried to any platform.This byte code is platform-independent and can be run on any machine. Platform-Independent: Java provides a guarantee that code writes once and run anywhere.Java contains a security manager that defines the access of Java classes. Secure: Java is a secure programming language because it has no explicit pointer and programs runs in the virtual machine.Exception handling and garbage collection features make it strong. It uses a strong memory management system called garbage collector. Robust: Java makes an effort to check error at run time and compile time.A program must have at least one class and object. Object-Oriented: In Java, everything is in the form of the object.For example, pointer and operator overloading are not used in Java. Complex and ambiguous concepts of C++ are either eliminated or re-implemented in Java. Simple: Java is a simple language because its syntax is simple, clean, and easy to understand.Java Platform includes an execution engine, a compiler and set of libraries. It helps to develop and run a program written in the Java programming language. Java Platform is a collection of programs. Java is a platform for App Development in Android. Mobile Applications: Java ME is a cross-platform to develop mobile applications which run across smartphones.We use JSP, Servlet, Spring, and Hibernate technologies for creating web applications. Web Applications: An applications that run on the server is called web applications.Enterprise Applications: An application which is distributed in nature is called enterprise applications.

These components contain buttons, list, menu, scroll panel, etc.
