About InstructorIntroduction to JAVA
Ahmed Abbadi
ESL
About Instructor
Ahmed Abbadi:
• Cairo university, Faculty of
Engineering, Department of
Electronics & communication (second
year)
• Member at IEEE PR team
• Mobile: 01110801023
• Email: eng.abbadi.25@gmail.com
JAVA
•What is JAVA
•OOP
•Why JAVA
•Architecture
•Examples
What is JAVA
OOP
Why
JAVA
Architecture
Examples
5
9/8/2015
• Historical view
• Based on C/C++
• General purpose
OOP
• Where is JAVA
What is
JAVA
• JAVA was developed in the 1990s by Sun
Microsystems (James Gosling) which has
been acquired by Oracle.
• It`s name was Oak, Green then JAVA.
• Sun Microsystems released the first
public implementation as Java 1.0 in 1995
Historical view
6
9/8/2015
• Historical view
• Based on C/C++
• General purpose
OOP
• Where is JAVA
What is
JAVA
• Gosling designed Java with a C/C++-
style syntax that system and application
programmers would find familiar.
Based on C/C++
7
9/8/2015
• Historical view
• Based on C/C++
• General purpose
OOP
• Where is JAVA
What is
JAVA
• Designed to be used for
writing software in a wide variety
of application domains.
• programming language based on
the concept of "objects“.
General purpose OOP
8
9/8/2015
• Historical view
• Based on C/C++
• General purpose
OOP
• Where is JAVA
What is
JAVA
• Computer applications.
• Web pages.
• Games.
• Smart phones (Android).
• Robots.
Where is JAVA
What is JAVA
OOP
Why
JAVA
Architecture
Examples
10
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP
• (OOP) is a programming method that
based from object. Small think from
OOP is an object collection that
interact with each other.
Object Orientation
11
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP
• Objects: structures that contain both
data and procedures.
• Objects have states(Attributes) and
behaviors(Actions). Example: A dog has
states - color, name, breed as well as
behaviors -wagging, barking, eating. An
object is an instance of a class.
Classes & Objects
12
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP
• Class: is the blueprint from which individual
objects are created.
• “Class” like form and each copy of it is a “Object”.
Classes & Objects
13
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP
• Different kinds of objects often
have a certain amount in common
with each other.
• Object-oriented programming
allows classes to inherit commonly
used state and behavior from other
classes.
Inheritance
14
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP
• Encapsulation is the mechanism that
binds together code and the data it
manipulates, and keeps both safe
from outside interference and
misuse.
Encapsulation
15
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP Encapsulation
16
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP
• Polymorphism is the ability to
take more than one form.
• It’s the ability to request for
an operation with the same
meaning to different objects.
Polymorphism
17
9/8/2015
18
9/8/2015
• Classes &
objects
• Inheritance
• Encapsulation
• Polymorphism
OOP Polymorphism
• “One Function & Multi Objects”
What is JAVA
OOP
Why
JAVA
Architecture
Examples
20
9/8/2015
• Object Oriented
• Simple
• Secure
• Portable
• Robust
• Architecture
Neutral
Why JAVA
• Object Oriented
• Simple
• Secure
• Portable (can run on any operating system)
• Robust
• Architecture Neutral (can run on any
processor)
Why Java?
What is JAVA
OOP
Why
JAVA
Architecture
Examples
22
9/8/2015
• Platform
• Independent
• JVM
• JDK
Architecture
• A Java Platform is the set of APIs,
class libraries, and other programs
used in developing Java programs for
specific applications.
JAVA Platform
23
9/8/2015
• Platform
• Independent
• JVM
• JDK
Architecture
• There are 3 Java Platform Editions:
1. Java 2 Platform, Standard Edition (J2SE)
• Core Java Platform targeting applications
running on workstations .
2. Java 2 Platform, Enterprise Edition (J2EE)
• Component-based approach to developing
distributed, multi-tier enterprise applications.
3. Java 2 Platform, Micro Edition (J2ME)
• Targeted at small, stand-alone
or connectable consumer and embedded devices.
JAVA Platform
24
9/8/2015
• Platform
• Independent
• JVM
• JDK
Architecture
• Java technology is used to develop
applications for a wide range of
environments.
Platform Independent
25
9/8/2015
• Platform
• Independent
• JVM
• JDK
Architecture
“Write once, Run Anywhere”
Platform Independent
26
9/8/2015
• Platform
• Independent
• JVM
• JDK
Architecture
Java Virtual Machine
• JVM is a component which provides
an environment for running Java
programs. JVM interprets the
bytecode into machine code which
will be executed the machine in
which the Java program runs.
27
9/8/2015
• Platform
• Independent
• JVM
• JDK
Architecture
Java Development Kit
• JDK consists of the following:
Java development tools, including the
compiler, debugger, classes and JVM.
What is JAVA
OOP
Why
JAVA
Architecture
Examples
29
9/8/2015
Examples For Each loop
• For Each loop
• Inheritance
30
9/8/2015
• For Each loop
• Inheritance
Examples Examples
31
9/8/2015
• For Each loop
• Inheritance
Examples Inheritance
32

Introduction to java