JAVA
A Brief Introduction
Jagriti Srivastava
Terms Used In JAVA
Object Class Methods
Java Program
Object/Class/Methods
• Class Human Object Method
States
Name
FamilyName
Height
Weight
Behavior
Can walk
Can talk…
Walking
Talking
Expressions
JAVA ???
• Object Oriented Programing Language
• Developer : Sun Microsystem 1995
• Write Once Run Anywhere
Features
• Easy learning/simple syntax/clean & easy to
understand
• Object everywhere
• Software = object data + object behavior
PLATFORM INDEPENDENT
Write once run anywhere
Bytecode
SECURED
JDK
JRE
JDK
Tool
JVM
Java
Javac
Javadoc
Jdb…
Robust
• Strong
• No Pointer So high security
• Automatic Garbage Collection
• Exception Handling and type checking
• Architecture Neutral – Size of primitive type is
fixed
• Portable – Can be carried anywhere
• High Performance –
• Distributed – distributed application can be
called from anywhere
Multithreaded
• Many task at one time
• Defines multiple thread
• Shares memory for threads.
Object
Oriente
d
Method
Overridi
ng
Encapsu
lation
Polymor
phism
Class
Object
Inherita
nce
Abstract
ion
• Polymorphism –taking many forms
• Inheritance – when one acquires properties of
another
• Overriding – implementation of any method
that is already provided
Animal Class Cat class
run method run method
Parent Class Child class
Inheritance
Method Overriding
Run method – polymorphism
• Encapsulation – wrapping data and method as
a single unit
• Making data private or also in a package
Abstraction
• hiding the implementation details from the
user
Uses of Java
Java , A brief Introduction

Java , A brief Introduction