JPR GP Micr
JPR GP Micr
Introduction
History
Object Oriented Programming in java
Applications of java
Task Management System in Java
Task Management system code
Task Management system Output VIII.
Conclusion
Introduction
Class
Object
Inheritance
Polymorphism
Abstraction
Encapsulation
Class: Collection of objects is called class. It is a logical entity. A class can also be
defined as a blueprint from which you can create an individual object. Class doesn't
consume any space.
Object: Any entity that has state and behavior is known as an object. For example,
a chair, pen, table, keyboard, bike, etc. It can be physical or logical. An Object can be
defined as an instance of a class. An object contains an address and takes up some
space in memory. Objects can communicate without knowing the details of each
other's data or code. The only necessary thing is the type of message accepted and
the type of response returned by the objects.
Inheritance: When one object acquires all the properties and behaviors of a parent
object, it is known as inheritance. It provides code re-usability. It is used to achieve
runtime polymorphism.
Encapsualtion: Binding (or wrapping) code and data together into a single unit
are known as encapsulation. For example, a capsule, it is wrapped with different
medicines.
A java class is the example of encapsulation. Java bean is the fully encapsulated
class because all the data members are private here.
Advantage of OOPs over Procedure-oriented programming language
OOPs makes development and maintenance easier, whereas, in a
procedureoriented programming language, it is not easy to manage if code grows
as project size increases.
OOPs provides data hiding, whereas, in a procedure-oriented programming
language, global data can be accessed from anywhere.
OOPs provides the ability to simulate real-world event much more effectively. We
can provide the solution of real word problem if we are using the Object-Oriented
Programming language.
Object oriented programming have access specifiers like private, public, protected
etc.
Object oriented programming provides data hiding so it is more secure.
In object oriented programming, data is more important than function.
Applications of java
Java is the Queen of programming languages. It beholds the pride of the most
preferred programming language by software developers. It is surprising to note
that at present around three billion devices use Java for development. Java has an
amazing design that incorporates the flexibility to run on any machine. It has been
a major component in the development of a plethora of applications and the
advancement of major technologies.
Java has become the most robust programming language because of its amazing
features. Some of its features are platform independence, high performance,
Object orientation, support automatic garbage management, and many more. In
this blog, we will discuss the Top 10 Applications of Java in the real world in a
detailed manner.
https://www.javatpoint.com/java-tutorial
https://www.geeksforgeeks.org/java/