SlideShare una empresa de Scribd logo
1 de 15
JAVA EVOLUTION
BY
HARSHA BATRA
ASSISTANT PROFESSOR
www.advanced.edu.in
Introduction
Java is a another programming language but with a
difference that it is purely object-oriented. It is most
complete programming language available today. It is also
secure, making it well-suited for Internet programming.
www.advanced.edu.in
Contents
1. Java - Introduction
2. History of Java
3. Features of Java
4. Java Environment
5. JRE Components
Java - Introduction
Java is a set of computer software and specifications developed by Sun Microsystems, later
acquired by Oracle Corporation, that provides a system for developing application software and
deploying it in a cross-platform computing environment.
Java is used in a wide variety of computing platforms from embedded devices and mobile
phones to enterprise servers and supercomputers.
Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific
supercomputers, cell phones to the Internet, Java is everywhere!
www.advanced.edu.in
History of Java
1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in
June 1991. The small team of sun engineers called Green Team.
2) Originally designed for small, embedded systems in electronic appliances like set-top boxes.
3) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt.
4) After that, it was called Oak and was developed as a part of the Green project.
5) In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies.
www.advanced.edu.in
Features of Java
Compiled and Interpreted: Java has both Compiler and Interpreter Feature. Program is First Compiled
and then Interpreted .In the first step after Compilation it creates Bytes Codes rather than Machine code.
Then in second step Bytes Code is Converted into the Machine Language with the help of the Interpreter.
Platform Independent:- Java is Platform Independent means program of java is Easily transferable. As
mentioned above that after Compilation bytes code gets created this can be transferred easily to
another Computer. It is not necessary for computers having same Operating System in which the code of
the java was created and executed.
Object-Oriented:- We Know that Java is purely OOP Language i.e. all the Code is Written into the classes
and Objects. For this feature java is most popular language.
www.advanced.edu.in
Simple Small and Familiar:- is a simple Language Because it contains many features of other Languages like
c and C++ and Java Removes Complexity because it doesn’t use pointers, Storage Classes and Go to
Statements and java Doesn’t support Multiple Inheritance
Multithreaded and Interactive:- Java uses Multithreaded Techniques For Execution. Program of java is
divided into the Small parts those are Executed by Compiler of java itself. Java is Called as Interactive
because Code of java Supports CUI as well as GUI Programs.
Secure: Java was designed with security in mind. As Java is intended to be used in networked/distributed
environments so it implements several security mechanisms to protect against malicious code that might try
to invade file system. For example: The absence of pointers in Java makes it impossible for applications to
gain access to memory locations without proper authorization as memory allocation and referencing model
is completely opaque to the programmer and controlled entirely by the underlying run-time platform .
www.advanced.edu.in
Distributed:- The program in java can be design to run on computer networks. Java provides an extensive library of
classes for communicating, using TCP/IP protocols such as HTTP and FTP. This makes creating network connections
much easier than in C/C++. You can read and write objects on the remote sites via URL with the same ease that
programmers are used to when read and write data from and to a file. This helps the programmers at remote
locations to work together on the same project.
High performance: Java programs are complied to portable intermediate form know as bytecodes, rather than to
native machine level instructions and JVM executes Java bytecode on. Any machine on which it is installed. This
architecture means that Java programs are faster than program or scripts written in purely interpreted languages
but slower than C and C++ programs that compiled to native machine languages.
www.advanced.edu.in
Architectural Neutral: One of the key feature of Java that makes it different from other programming
languages is architectural neutral (or platform independent). This means that the programs written on one
platform can run on any other platform without having to rewrite or recompile them. In other words, it
follows 'Write-once-run-anywhere' approach.
Java programs are compiled into byte-code format which does not depend on any machine architecture
but can be easily translated into a specific machine by a Java Virtual Machine (JVM) for that machine. This
is a significant advantage when developing applets or applications that are downloaded from the Internet
and are needed to run on different systems.
Dynamic and Extensible Code:- java is Object-Oriented and hence follows Inheritance which supports
code-reusability and the built in Functions of java and Classes can also be reused.
www.advanced.edu.in
Java Environment
Java environment includes a large number of development tools and hundreds of classes and methods. The
development tools are a part of JDK (Java Development Kit), and classes and methods are a part of JSL (Java
Standard Library), also known as API(Application Programming Interface).
Java Development Kit
JDK comes with a collection of tools used for developing and running Java programs. They include:
1. Appletviewer (for viewing Java applets) 5. javah (for C header files)
2. javac (java compiler) 6. javadoc (for HTML documents)
3. java (java interpreter) 7.jdb (java debugger)
4. javap (java disassembler)
www.advanced.edu.in
JRE Components
The JRE is the software environment in which programs are compiled for a typical JVM (Java Virtual Machine)
implementation can run. The runtime system includes:
1. JVM: It is a program that interprets the intermediate Java byte code and generates the desired output. It is because
of JVM and byte code that make Java programs portable.
2. Runtime class libraries: These are a set of core class libraries that are required for the execution of Java programs.
3. User Interface toolkits: AWT (Abstract Windows Toolkit) and Swing are examples of toolkits that support varied input
methods to interact with application program.
4. Deployment Technologies: JRE comprises of Java Plug-in and Java Web Start.
www.advanced.edu.in
1. JVM
The JVM is an abstract computing machine, having an instruction set that uses memory. Virtual machines are
often used to implement a programming language. The JVM is the cornerstone of the Java programming language.
It is responsible for Java's cross-platform portability and the small size of its compiled code.
The Solaris JVM is used to execute Java applications. The Java compiler, javac, outputs bytecodes and puts them
into a .class file. The JVM then interprets these bytecodes, which can then be executed by any JVM
implementation, thus providing Java's cross-platform portability. The next two figures illustrate the traditional
compile-time environment and the new portable Java compile-time environment.
www.advanced.edu.in
1.1 Multithreading JVM
The Java programming language requires that multithreading (MT) programs be supported. All Java interpreters
provide an MT programming environment. However, many of these interpreters support only uniprocessor
multithreading, so Java program threads are executed one at a time.
The Solaris JVM interpreter takes full advantage of multiprocessor systems by using the intrinsic Solaris
multithread facilities. These allow multiple threads of a single process to be scheduled simultaneously onto
multiple CPUs. An MT Java program run under the Solaris JVM will have a substantial increase in concurrency over
the same program run on other platforms.
www.advanced.edu.in
1.2 Sun Just-In-Time (JIT) Compiler
The Sun Java JIT compiler, an integral part of the Solaris JVM, can accelerate execution performance many times
over previous levels. Long-running, compute-intensive programs show the best performance improvement.
JIT Compile Process
When the JIT compiler environment variable is on (the default), the JVM reads the .class file for interpretation
and passes it to the JIT compiler. The JIT compiler then compiles the bytecodes into native code for the platform
on which it is running. The next figure illustrates the JIT compile process.
www.advanced.edu.in
4. Deployment Technologies
JRE comprises of the following key deployment technologies:
1. Java Plug-in: Enables the execution of Java applet on the browser.
2. Java Web Start: Enables remote deployment of the application. With Web Start, users can launch an
application from the Web browser without going through installation procedure.

Más contenido relacionado

La actualidad más candente

Presentation on Java Basic
Presentation on Java BasicPresentation on Java Basic
Presentation on Java Basic
Rustamji Institute of Technology
 
Presentación rs232 java
Presentación rs232 javaPresentación rs232 java
Presentación rs232 java
John Rojas
 

La actualidad más candente (20)

Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
1 Introduction To Java Technology
1 Introduction To Java Technology 1 Introduction To Java Technology
1 Introduction To Java Technology
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
Java programming(unit 1)
Java programming(unit 1)Java programming(unit 1)
Java programming(unit 1)
 
Programming in Java
Programming in JavaProgramming in Java
Programming in Java
 
JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
 
Java Programming Basics
Java Programming BasicsJava Programming Basics
Java Programming Basics
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Java Intro
Java IntroJava Intro
Java Intro
 
Presentation on Java Basic
Presentation on Java BasicPresentation on Java Basic
Presentation on Java Basic
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Java lab lecture 1
Java  lab  lecture 1Java  lab  lecture 1
Java lab lecture 1
 
JAVA CORE
JAVA COREJAVA CORE
JAVA CORE
 
Java lab zero lecture
Java  lab  zero lectureJava  lab  zero lecture
Java lab zero lecture
 
Java notes
Java notesJava notes
Java notes
 
Presentación rs232 java
Presentación rs232 javaPresentación rs232 java
Presentación rs232 java
 
JAVA Program Examples
JAVA Program ExamplesJAVA Program Examples
JAVA Program Examples
 
Industrial Training report on java
Industrial  Training report on javaIndustrial  Training report on java
Industrial Training report on java
 

Destacado

Adesiyan_Hypermedia Project Rationale
Adesiyan_Hypermedia Project RationaleAdesiyan_Hypermedia Project Rationale
Adesiyan_Hypermedia Project Rationale
Jelilat Adesiyan
 
Review of Wink Poppy Midnight by April Genevieve Tucholke
Review of Wink Poppy Midnight by April Genevieve TucholkeReview of Wink Poppy Midnight by April Genevieve Tucholke
Review of Wink Poppy Midnight by April Genevieve Tucholke
Jelilat Adesiyan
 
Resilient_New_Orleans_Strategy
Resilient_New_Orleans_StrategyResilient_New_Orleans_Strategy
Resilient_New_Orleans_Strategy
Jermaine L. Smith
 

Destacado (20)

bachelor's degree
bachelor's degreebachelor's degree
bachelor's degree
 
el realismo
el realismoel realismo
el realismo
 
ICP-TST Grant Yarde 2015
ICP-TST Grant Yarde 2015ICP-TST Grant Yarde 2015
ICP-TST Grant Yarde 2015
 
Adesiyan_Hypermedia Project Rationale
Adesiyan_Hypermedia Project RationaleAdesiyan_Hypermedia Project Rationale
Adesiyan_Hypermedia Project Rationale
 
Org Change Mang Cert Grant Yarde 2014
Org Change Mang Cert Grant Yarde 2014Org Change Mang Cert Grant Yarde 2014
Org Change Mang Cert Grant Yarde 2014
 
Arquivo78
Arquivo78Arquivo78
Arquivo78
 
Modulo 7
Modulo 7Modulo 7
Modulo 7
 
Review of Wink Poppy Midnight by April Genevieve Tucholke
Review of Wink Poppy Midnight by April Genevieve TucholkeReview of Wink Poppy Midnight by April Genevieve Tucholke
Review of Wink Poppy Midnight by April Genevieve Tucholke
 
Resilient_New_Orleans_Strategy
Resilient_New_Orleans_StrategyResilient_New_Orleans_Strategy
Resilient_New_Orleans_Strategy
 
How Retirement Services Providers Can Tap Blockchain Thinking and Technology
How Retirement Services Providers Can Tap Blockchain Thinking and TechnologyHow Retirement Services Providers Can Tap Blockchain Thinking and Technology
How Retirement Services Providers Can Tap Blockchain Thinking and Technology
 
Ice age 4–epilog
Ice age 4–epilogIce age 4–epilog
Ice age 4–epilog
 
Facebook academia
Facebook academiaFacebook academia
Facebook academia
 
1с:молокозавод
1с:молокозавод1с:молокозавод
1с:молокозавод
 
Poverty, housing and health in Johannesburg
Poverty, housing and health in JohannesburgPoverty, housing and health in Johannesburg
Poverty, housing and health in Johannesburg
 
Ball pens from ancient times to now
Ball pens from ancient times to nowBall pens from ancient times to now
Ball pens from ancient times to now
 
Sustainable Apparel - Reflections on Progress - Les Jacques, Sustainability C...
Sustainable Apparel - Reflections on Progress - Les Jacques, Sustainability C...Sustainable Apparel - Reflections on Progress - Les Jacques, Sustainability C...
Sustainable Apparel - Reflections on Progress - Les Jacques, Sustainability C...
 
Topic 12
Topic 12Topic 12
Topic 12
 
Emu (Economic and monetary union)
Emu (Economic and monetary union)Emu (Economic and monetary union)
Emu (Economic and monetary union)
 
The Social Challenge of 1.5°C Webinar: Ilan Chabay
The Social Challenge of 1.5°C Webinar: Ilan ChabayThe Social Challenge of 1.5°C Webinar: Ilan Chabay
The Social Challenge of 1.5°C Webinar: Ilan Chabay
 
地方創生×シェア経済 〜湯沢市の場合〜 (藤井延之)
地方創生×シェア経済 〜湯沢市の場合〜 (藤井延之)地方創生×シェア経済 〜湯沢市の場合〜 (藤井延之)
地方創生×シェア経済 〜湯沢市の場合〜 (藤井延之)
 

Similar a Java ms harsha

TechSearchWeb.pdf
TechSearchWeb.pdfTechSearchWeb.pdf
TechSearchWeb.pdf
TechSearchWeb
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdf
TechSearchWeb
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 

Similar a Java ms harsha (20)

Unit1 JAVA.pptx
Unit1 JAVA.pptxUnit1 JAVA.pptx
Unit1 JAVA.pptx
 
Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf0f0cef_1dac552af56c4338ab0672859199e693.pdf
0f0cef_1dac552af56c4338ab0672859199e693.pdf
 
JAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptxJAVA ALL 5 MODULE NOTES.pptx
JAVA ALL 5 MODULE NOTES.pptx
 
Java features
Java  features Java  features
Java features
 
java introduction.docx
java introduction.docxjava introduction.docx
java introduction.docx
 
Java
JavaJava
Java
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptxJAVA PROGRAMMING-Unit I - Final PPT.pptx
JAVA PROGRAMMING-Unit I - Final PPT.pptx
 
Java1
Java1Java1
Java1
 
Java
Java Java
Java
 
Unit1 introduction to Java
Unit1 introduction to JavaUnit1 introduction to Java
Unit1 introduction to Java
 
Java part1
Java part1Java part1
Java part1
 
Introduction to Java Programming.pdf
Introduction to Java Programming.pdfIntroduction to Java Programming.pdf
Introduction to Java Programming.pdf
 
TechSearchWeb.pdf
TechSearchWeb.pdfTechSearchWeb.pdf
TechSearchWeb.pdf
 
Technology Tutorial.pdf
Technology Tutorial.pdfTechnology Tutorial.pdf
Technology Tutorial.pdf
 
Core Java-1 (1).pdf
Core Java-1 (1).pdfCore Java-1 (1).pdf
Core Java-1 (1).pdf
 
Java Introduction | PDF
Java Introduction |  PDFJava Introduction |  PDF
Java Introduction | PDF
 
Java Evolution-2.pdf
Java Evolution-2.pdfJava Evolution-2.pdf
Java Evolution-2.pdf
 
Sybsc cs sem 3 core java
Sybsc cs sem 3 core javaSybsc cs sem 3 core java
Sybsc cs sem 3 core java
 
Inside JVM
Inside JVMInside JVM
Inside JVM
 

Último

Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 

Último (20)

Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 

Java ms harsha

  • 1. JAVA EVOLUTION BY HARSHA BATRA ASSISTANT PROFESSOR www.advanced.edu.in
  • 2. Introduction Java is a another programming language but with a difference that it is purely object-oriented. It is most complete programming language available today. It is also secure, making it well-suited for Internet programming. www.advanced.edu.in
  • 3. Contents 1. Java - Introduction 2. History of Java 3. Features of Java 4. Java Environment 5. JRE Components
  • 4. Java - Introduction Java is a set of computer software and specifications developed by Sun Microsystems, later acquired by Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere! www.advanced.edu.in
  • 5. History of Java 1) James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team of sun engineers called Green Team. 2) Originally designed for small, embedded systems in electronic appliances like set-top boxes. 3) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt. 4) After that, it was called Oak and was developed as a part of the Green project. 5) In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies. www.advanced.edu.in
  • 6. Features of Java Compiled and Interpreted: Java has both Compiler and Interpreter Feature. Program is First Compiled and then Interpreted .In the first step after Compilation it creates Bytes Codes rather than Machine code. Then in second step Bytes Code is Converted into the Machine Language with the help of the Interpreter. Platform Independent:- Java is Platform Independent means program of java is Easily transferable. As mentioned above that after Compilation bytes code gets created this can be transferred easily to another Computer. It is not necessary for computers having same Operating System in which the code of the java was created and executed. Object-Oriented:- We Know that Java is purely OOP Language i.e. all the Code is Written into the classes and Objects. For this feature java is most popular language. www.advanced.edu.in
  • 7. Simple Small and Familiar:- is a simple Language Because it contains many features of other Languages like c and C++ and Java Removes Complexity because it doesn’t use pointers, Storage Classes and Go to Statements and java Doesn’t support Multiple Inheritance Multithreaded and Interactive:- Java uses Multithreaded Techniques For Execution. Program of java is divided into the Small parts those are Executed by Compiler of java itself. Java is Called as Interactive because Code of java Supports CUI as well as GUI Programs. Secure: Java was designed with security in mind. As Java is intended to be used in networked/distributed environments so it implements several security mechanisms to protect against malicious code that might try to invade file system. For example: The absence of pointers in Java makes it impossible for applications to gain access to memory locations without proper authorization as memory allocation and referencing model is completely opaque to the programmer and controlled entirely by the underlying run-time platform . www.advanced.edu.in
  • 8. Distributed:- The program in java can be design to run on computer networks. Java provides an extensive library of classes for communicating, using TCP/IP protocols such as HTTP and FTP. This makes creating network connections much easier than in C/C++. You can read and write objects on the remote sites via URL with the same ease that programmers are used to when read and write data from and to a file. This helps the programmers at remote locations to work together on the same project. High performance: Java programs are complied to portable intermediate form know as bytecodes, rather than to native machine level instructions and JVM executes Java bytecode on. Any machine on which it is installed. This architecture means that Java programs are faster than program or scripts written in purely interpreted languages but slower than C and C++ programs that compiled to native machine languages. www.advanced.edu.in
  • 9. Architectural Neutral: One of the key feature of Java that makes it different from other programming languages is architectural neutral (or platform independent). This means that the programs written on one platform can run on any other platform without having to rewrite or recompile them. In other words, it follows 'Write-once-run-anywhere' approach. Java programs are compiled into byte-code format which does not depend on any machine architecture but can be easily translated into a specific machine by a Java Virtual Machine (JVM) for that machine. This is a significant advantage when developing applets or applications that are downloaded from the Internet and are needed to run on different systems. Dynamic and Extensible Code:- java is Object-Oriented and hence follows Inheritance which supports code-reusability and the built in Functions of java and Classes can also be reused. www.advanced.edu.in
  • 10. Java Environment Java environment includes a large number of development tools and hundreds of classes and methods. The development tools are a part of JDK (Java Development Kit), and classes and methods are a part of JSL (Java Standard Library), also known as API(Application Programming Interface). Java Development Kit JDK comes with a collection of tools used for developing and running Java programs. They include: 1. Appletviewer (for viewing Java applets) 5. javah (for C header files) 2. javac (java compiler) 6. javadoc (for HTML documents) 3. java (java interpreter) 7.jdb (java debugger) 4. javap (java disassembler) www.advanced.edu.in
  • 11. JRE Components The JRE is the software environment in which programs are compiled for a typical JVM (Java Virtual Machine) implementation can run. The runtime system includes: 1. JVM: It is a program that interprets the intermediate Java byte code and generates the desired output. It is because of JVM and byte code that make Java programs portable. 2. Runtime class libraries: These are a set of core class libraries that are required for the execution of Java programs. 3. User Interface toolkits: AWT (Abstract Windows Toolkit) and Swing are examples of toolkits that support varied input methods to interact with application program. 4. Deployment Technologies: JRE comprises of Java Plug-in and Java Web Start. www.advanced.edu.in
  • 12. 1. JVM The JVM is an abstract computing machine, having an instruction set that uses memory. Virtual machines are often used to implement a programming language. The JVM is the cornerstone of the Java programming language. It is responsible for Java's cross-platform portability and the small size of its compiled code. The Solaris JVM is used to execute Java applications. The Java compiler, javac, outputs bytecodes and puts them into a .class file. The JVM then interprets these bytecodes, which can then be executed by any JVM implementation, thus providing Java's cross-platform portability. The next two figures illustrate the traditional compile-time environment and the new portable Java compile-time environment. www.advanced.edu.in
  • 13. 1.1 Multithreading JVM The Java programming language requires that multithreading (MT) programs be supported. All Java interpreters provide an MT programming environment. However, many of these interpreters support only uniprocessor multithreading, so Java program threads are executed one at a time. The Solaris JVM interpreter takes full advantage of multiprocessor systems by using the intrinsic Solaris multithread facilities. These allow multiple threads of a single process to be scheduled simultaneously onto multiple CPUs. An MT Java program run under the Solaris JVM will have a substantial increase in concurrency over the same program run on other platforms. www.advanced.edu.in
  • 14. 1.2 Sun Just-In-Time (JIT) Compiler The Sun Java JIT compiler, an integral part of the Solaris JVM, can accelerate execution performance many times over previous levels. Long-running, compute-intensive programs show the best performance improvement. JIT Compile Process When the JIT compiler environment variable is on (the default), the JVM reads the .class file for interpretation and passes it to the JIT compiler. The JIT compiler then compiles the bytecodes into native code for the platform on which it is running. The next figure illustrates the JIT compile process. www.advanced.edu.in
  • 15. 4. Deployment Technologies JRE comprises of the following key deployment technologies: 1. Java Plug-in: Enables the execution of Java applet on the browser. 2. Java Web Start: Enables remote deployment of the application. With Web Start, users can launch an application from the Web browser without going through installation procedure.