Week 2 Procedural Vs OOP
Week 2 Procedural Vs OOP
Object-Oriented
Programming
Apple Grace G. Oliveros
Nueva Ecija University of Science and Technology
UNIT 1
PROCEDURAL vs OBJECT-
ORIENTED
PROGRAMMING
Objectives:
At the end of the discussion, I shall be able
to,
Output:
Output:
Welcome to Java!
Greater than 10
WELCOME TO JAVA!
Java as Object-oriented
Programming
• Java was first introduced by Sun
Microsystems and was further acquired by
Oracle in 1995.
• It’s first name was Oak.
• It was immediately collaborated with Netscape
Navigator’s Java Virtual Machine (JVM)
• Java adapted the syntax of c++
• It promised Write Once, Run Anywhere
(WORA), providing no cost run-times on
popular platforms.
Java as Object-oriented
Programming
• Java as object oriented programming language;
program can be defined as a collection of
objects that communicate via invoking each
other's methods.
Java as Object-oriented
Programming
For PC users;
1. Linux/ Windows/ Mac
Operating System
2. Java JDK 6 or higher
versions
https://www.oracle.com/ph/java/t
echnologies/javase-
downloads.html
3. Any text editor
Setting up the path for windows
1.In Search,
Windows search
10 and for and
Windows 8 then select: System
(Control Panel)