Академический Документы
Профессиональный Документы
Культура Документы
Basic Syntax
Introduction
Cover
INTRODUCTION TO JAVA
Java programming language was originally
developed by Sun Microsystems which was
initiated by James Gosling and released in 1995
as core component of Sun Microsystems' Java
platform (Java 1.0 [J2SE]).
OOP with JAVA
Introduction
Basic Syntax
Cover
The language, initially called ‘Oak’
after an oak tree that stood outside Gosling's
office,
Object - Objects have states and behaviors. Example: A dog has states -
color, name, breed as well as behavior such as wagging their tail, barking,
OOP with JAVA
Introduction
Basic Syntax
eating. An object is an instance of a class.
Cover
Class - A class can be defined as a template/blueprint that describes the
behavior/state that the object of its type supports.
Instance Variables - Each object has its unique set of instance variables.
An object's state is created by the values assigned to these instance
variables.
Prodip Kumar (M.Sc. Computer Science) 3
OBJECT ORIENTED PROGRAMMING WITH JAVA
Introduction
Basic Syntax
Inheritance, Encapsulation, Abstraction,
Cover
Polymorphism.
Most popular programming languages As Java being
the most sought-after skill. An object-based
application in Java is based on declaring classes,
creating objects from them and interacting
between these objects.
Prodip Kumar (M.Sc. Computer Science) 4
JAVA VIRTUAL MACHINE (JVM)
Introduction
Basic Syntax
In other programming languages, the compiler produces
Cover
JVM
machine code for a particular system. However, Java
compiler produces code for a Virtual Machine known as Java
Virtual Machine.
First, Java code is complied into bytecode. This bytecode
gets interpreted on different machines
Platform Independent
your system then automatically JVM are installed on
Introduction
Basic Syntax
your system. For every operating system separate
Cover
JVM
JVM is available which is capable to read the .class file
or byte code. When we compile your Java code then
.class file is generated by javac compiler these codes
are readable by JVM and every operating system have
its own JVM so JVM is platform dependent but due to
JVM java language is become platform independent.
Platform Independent
Sample Program
Introduction
Basic Syntax
}
Cover
JVM
}