Assignments Questions:-: 1) What Is OOP? Features of OOP? .Need of OOP? With Examples
Assignments Questions:-: 1) What Is OOP? Features of OOP? .Need of OOP? With Examples
Questions:-
1) What is OOP? Features of OOP? .Need Of OOP? With Examples.
Object-oriented programming (OOP) is a way of writing computer programs which is using the idea of
"objects" to represent data and methods. Usually, computer programs were just a list of instructions to
the computer.
Example of OOP:-
A car is having multiple parts.. like steering,wheels, engine etc. which binds together to form a
single object that is car. So, Here multiple parts of cars encapsulates itself together to form a
single object that is Car.
Object-oriented Design (OOD) phases determines the process of planning a system in which
objects interact with each other to solve a software problem.
◦ Inheritance – Enables the developer to extend and reuse the features of existing classes
and create new classes. The new classes are referred to as derived classes.
◦ Polymorphism – Is the ability of an object to respond to same message in different
ways.
5) Java Need ? Features Of Java & also Define MultiThread and Java is
Multithread or not?
◦ It is one of the most popular OOP language.
◦ It helps programmers to develop wide range of applications that can run on various hardware and
Operating System (OS).
Features Of Java
Java is a high level OOP language as well a platform used for developing applications that can be
executed on different platforms.
• Distributed
Supports distributed programming in which resources can be accessed across the network.
• Dynamic
At runtime an application can dynamically decide which classes it requires and loads them
accordingly.
This gives new perspective to Java for designing and developing applications.
• Multithread
Allows a single program to perform multiple tasks simultaneously with different threads.
Java class library also referred to as Java Programming Interface (Java API).
7) What is Jvm?
◦ It is an executable engine that creates an environment for executing Java compiled code, that is,
bytecode.
It is known as a virtual machine because it is an imitation of a Java processor on the physical
machine.
JRE:-
JRE provides JVM and Java libraries that are used to run a Java program.
JDK:-
◦ Its Known as Java Development Kit (JDK).