|
OOP stands for Object Oriented Programming. OOPs provide a better flexibility and compatibility for developing large applications. This is a technique used to develop programs revolving around the real world entities. In OOPs programming model, programs are developed around data rather than actions and logics. In OOPs, every real life object has properties and behavior. Which is achieved through the class and object creation. They contain properties (variables of some type) and behavior (methods). Inheritance:
Inheritance provides the facility to drive one class by another using simple syntax. Inheritance used to manage and make well structured software. You can say that it is a process of creating new class and use the behavior of the existing class by extending them for reuse the existing code and adding the additional features as you need. Encapsulation:
In object-oriented programming, encapsulation is the inclusion within a program object of all the resources need for the object to function - basically, the methods and the data. The object is said to "publish its interfaces." Other objects adhere to these interfaces to use the object without having to be concerned with how the object accomplishes it. Polymorphism:
Polymorphism is considered to be a requirement of any true object-oriented programming language. In object-oriented programming, polymorphism refers to a programming language's ability to process objects differently depending on their data type or class. More specifically, it is the ability to redefine methods for derived classes. For example, given a base class shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as circles, rectangles and triangles. No matter what shape an object is, applying the area method to it will return the correct results. Dynamic binding:
In object oriented programming, dynamic binding refers to determining the exact implementation of a request based on both the request (operation) name and the receiving object at the run-time. It often happens when invoking a derived class's member function using a pointer to its super class. The implementation of the derived class will be invoked instead of that of the super class. It allows substituting a particular implementation using the same interface and enables polymorphism. Class:
A class is the blueprint from which individual objects are created. A class defines the properties and behavior (variables and methods) that is shared by all its objects. The primitive data type and keyword void is work as a class object. Object:
Object is an instance of the class. Class itself does nothing; the real functionality is achieved through their objects. Objects interact with the user, but they can also interact with each other and they can be put together in groups, collections, arrays or lists. Java Virtual Machine: A Java Virtual Machine (JVM) is a set of computer software programs and data structures which use a virtual machine model for the execution of other computer programs and scripts. JVM is the main component of Java architecture and it is the part of the JRE (Java Runtime Environment). It provides the cross platform functionality to java.
A Java virtual machine (JVM), an implementation of the Java Virtual Machine Specification, interprets compiled Java binary code (called byte code) for a computer's processor (or "hardware platform") so that it can perform a Java program's instructions. The programs written in Java or the source code translated by Java compiler into byte code and after that the JVM converts the byte code into machine code for the computer one wants to run. JVM is a part of Java Run Time Environment. Every operating system requires a different JRE. |