0% found this document useful (0 votes)
12 views31 pages

1 - JAVA Introduction New

Uploaded by

shahmrunalstudy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views31 pages

1 - JAVA Introduction New

Uploaded by

shahmrunalstudy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Object Oriented

Programming with
Are We Living in a Simulation?
• Neil deGrasse Tyson: It's hard to argue that we aren't living
in a simulated world
• https://www.youtube.com/watch?v=SYAG9dAfy8U&t=31s
Lets create our own world in our computer.

•But how?
Programming Paradigms
• "A programming paradigm is a fundamental style or approach to
programming that guides the structure, organization, and execution of
code. It influences how we solve problems and design software."
Major programming paradigms:
• Imperative/Procedural: Focus on procedures and commands.
• Object-Oriented: Organize code around objects and classes.
• Functional: Treat computation as the evaluation of mathematical
functions.
• Declarative: Describe what should be achieved without specifying
how.
Differences: OOP vs. Procedural
Programming
• Object-Oriented Programming (OOP):
• Definition: "OOP focuses on organizing code around 'objects,' promoting
modularity, encapsulation, and code reuse. It emphasizes real-world entities
and their interactions."
• Procedural Programming:
• Definition: Procedural Programming is centered around procedures or
routines.
• It follows a step-by-step approach and focuses on procedures, routines, or
tasks that manipulate data.
• It lacks the concept of objects and may lead to less modular and reusable code.
What is Object-Oriented Programming?
• Definition: "Object-Oriented Programming (OOP) is a
programming paradigm that revolves around the concept of
'objects.' It organizes code into reusable structures, allowing the
modeling of real-world entities by encapsulating data and
behavior within these objects.“
Objects and Classes
• Objects:
• Definition: "In OOP, an object is a tangible instance of a class. It combines
data (attributes) and behavior (methods) related to a specific entity in the real
or conceptual world."
• Classes:
• Definition: "A class is a blueprint or template in OOP. It defines the properties
(attributes) and behaviors (methods) that will be shared by all instances of that
class (objects)."
Need of Programming Languages
Why JAVA
Keep Calm and
Understand JVM
JVM
Code – Compile – Interpret – Compile – Run
JVM
• Java Virtual Machine (JVM) is a program which is basically an
execution place for the Java applications
JVM
Architecture
Object Oriented
Platform Independent / Architecture Neutral
Secure and Robust
Performance and Efficiency
• Java provides high
performance with the use
of “JIT – Just In Time
compiler”, in which the
compiler compiles the
code on-demand basis,
that is, it compiles only
that method which is
being called

You might also like