0% found this document useful (0 votes)
16 views

Assignments Questions:-: 1) What Is OOP? Features of OOP? .Need of OOP? With Examples

1) Object-oriented programming (OOP) represents data and methods using objects. A car object encapsulates parts like the steering, wheels, and engine to represent a car. 2) Object-oriented development models interacting objects that maintain their own local state and provide operations on that state. 3) Object-oriented analysis determines system functionality. Object-oriented design determines how objects interact to solve problems. Object-oriented programming deals with implementing applications.

Uploaded by

Java Learning
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Assignments Questions:-: 1) What Is OOP? Features of OOP? .Need of OOP? With Examples

1) Object-oriented programming (OOP) represents data and methods using objects. A car object encapsulates parts like the steering, wheels, and engine to represent a car. 2) Object-oriented development models interacting objects that maintain their own local state and provide operations on that state. 3) Object-oriented analysis determines system functionality. Object-oriented design determines how objects interact to solve problems. Object-oriented programming deals with implementing applications.

Uploaded by

Java Learning
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignments

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.

2) what is need for Object oriented Development?


Object-oriented development. The terms object and object-oriented are applied to different types of
entity, design methods, systems and programming languages. An object-oriented system is made up of
interacting objects that maintain their own local state and provide operations on that state.

3) Define OOA,OOD & OOP with deeply?


Object-oriented Analysis (OOA) phase determines the functionality of the system.

Object-oriented Design (OOD) phases determines the process of planning a system in which
objects interact with each other to solve a software problem.

Object-oriented Programming (OOP) deals with the actual implementation of the


application.

4) Define 6 Main Pillars of OOP with examples?


◦ Object – Represents an entity which possesses certain features and behaviors.

◦ Class – Is a template that is used to create objects of that class.

◦ Abstraction – Is a design technique that focuses only on the essential features of an


entity for a specific problem domain.

◦ Encapsulation – Is a mechanism that combines data and implementation details into a


single unit called class.

◦ 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).

◦ It is also a platform that creates an environment for executing Java application.

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.

6) How Java is Independent for Platform?


 Is a software-only platform that runs on top of other hardware-based platforms.

 Contains Java Runtime Environment (JRE) with components namely:

 Java Virtual Machine (JVM)

 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.

8) How java Code Run?


Is an intermediate form closer to machine representation.
Is an optimized set of instructions executed by the Java runtime environment.
This environment is known as JVM.
The same bytecode can be executed by different implementations of JVM on various
platforms.
9) Difference b/w Jre And JDK?

JRE:-
JRE provides JVM and Java libraries that are used to run a Java program.

JDK:-
◦ Its Known as Java Development Kit (JDK).

◦ Is a binary software development kit released by Oracle Corporation.

◦ Is an implementation of Java and distributed for different platforms,


such as Windows, Linux, Mac OS X, and so on.

◦ Contains a comprehensive set of tools, such as compilers and debuggers


that are used to develop Java applications.

You might also like