Java UNIT-1
Java UNIT-1
INTRODUCTION TO OBJECT
ORIENTED PARADIGM
[email protected]
+91-9654249954
Unit A Introduction to Object Oriented Paradigm
Mike Sheridan
Patrick Naughton
HISTORY OF JAVA PROGRAMMING
CONTD…
The first name was: Greentalk
File extension: .gt
Message passing by
methods.
FEATURES OF JAVA
The features of Java or, Java buzzwords:
Simple
Secure
Portable
Object-oriented
Robust
Multithreaded
Architecture-neutral
Interpreted
High performance
Distributed
Dynamic
SIMPLE
When you use a Java-compatible Web browser, you can safely download Java
applets without fear of viral infection or malicious intent. Java achieves this
protection by confining a Java program to the Java execution environment
and not allowing it access to other parts of the computer.
The ability to download applets with confidence that no harm will be done
and that no security will be breached is considered by many to be the single
most important aspect of Java.
PORTABILITY
https://www.oracle.com/technetwork/java/javase/downloads/index.
html
C:\Program Files\Java\jdk1.5.0_05
javac Sample.java
The compiler generates byte code and Sample.class will be
created.
EXECUTING THE PROGRAM (SAMPLE.CLASS)
To run the program, enter java followed by the class name created
at the time of compilation at the command prompt in the same
directory as:
java Sample
The program interpreted and the output is displayed.
The Java Virtual Machine:
Java Virtual Machine (JVM) is the heart of entire Java program
execution process.
First of all, the .java program is converted into a .class file
consisting of byte code instructions by the java compiler at the time
of compilation.
Remember, this java compiler is outside the JVM. This .class file is
given to the JVM.
JAVA COMPILER & JVM ( JAVA VIRTUAL
MACHINE )
JVM MAKES JAVA PLATFORM INDEPENDENT
INTERNAL ARCHITECTURE OF JVM
CONTD…