SlideShare una empresa de Scribd logo
1 de 19
1
JAVA
INTRODUCTION
© 2018, computersirkiclass.com, all rights reserved
2
• History of JAVA
• Advantages of JAVA
• JAVA Vs C++
• JAVA Development Kit(JDK)
• JAVA Runtime Environment
OUTLINE
3
History Of JAVA-1
• Java is a high level object-oriented programming
language developed by James Gosling at Sun
Microsystems in the early 1990s.
• James Gosling was unhappy using c++ programming
language so he developed Java.
• Originally designed in (1991) as a small language for
consumer electronics (cable boxes, toasters etc.)
• A team of Sun Microsystems in the guidance of
James Gosling decided to develop an advanced
programming language for the betterment of
consumer electronic devices.
4
History Of JAVA-2
• They developed a platform independent
software based on the power of networks
that can run on different application areas,
such as computers and electronic devices.
• It was initially called 'Oak‘.
• It was renamed as 'JAVA' released in 1995
as a core component of Sun Microsystems
Java platform.
5
Java Versions
Version Date
JDK 1.0 23-Jan-1996
JDK 1.1 19-feb-1997
J2SE 1.2 8-Dec-1998
J2SE 1.3 8-May-2000
J2SE 1.4 06-Feb-2002
J2SE 5.0 30-Sep-2004
Java SE 6 11-Dec-2006
Java SE 7 28-July-2011
Other Version of JAVA along with their release dates -
6
Advantages Of JAVA
• Simple & Familiar
• Object-Oriented
• Compiled & Interpreted
• Platform Independent &Portable
• Robust
• Secure
• Distributed
• Multithreaded
• Dynamic & Extensible.
7
Simple & Familiar
• Java was designed to be simple
and familiar to learn language.
• Fundamental concepts can be
grasped quickly as the features
borrowed from C & C++.
• Features were removed that led
to poor programming practices
or were rarely used.
• It does not use pointers, goto
statement, Preprocessor header
files etc.
8
Object-Oriented
• All coding and data reside within object and
classes.
• Java has built-In exception handling.
• Everything in Java (except the primitive
data types) is an object.
• The object model in java is simple and easy
to extend so that complex programming
problems can be reduced to simple solutions.
• Extensive set of classes, arranged in packages
e.g. java.awt, java.io, java.net .
9
Compiled & Interpreted
• Java is both a compiled
and Interpreted language.
• Java Compiler generates
platform-independent
byte codes that are
interpreted into machine
readable instructions by a
Java Virtual Machine
(Java Interpreter) at
runtime.
10
Platform-Independent & Portable
• Java programs are designed to work
in a networked environment on a
variety of computers and operating
systems.
• The size of the primitive data types
are machine independent.
• Compiler generates platform-
independent byte codes rather than
native machine code, so it can be
implemented on any machine.
11
Robust
• Java has hard-and-fast rules for
compile-time and runtime error
checking.
• Java supports automatic garbage
collection so all memory
corruptions or unauthorized
memory accesses are impossible.
• Many error-prone features of
C/C++ programming were
removed.
12
Secure
• Usage in networked environment
requires more security.
• JVM verifies all byte codes before
execution & ensures all programs
follow the rules regarding object access
and usage.
• Java ensures that program cannot
gain access to memory locations
without proper authorization.
13
Distributed
• Java is network friendly.
• Java is designed as a distributed
language for creating
applications on networks.
• Multiple programmers can
work together on a single
project from multiple remote
locations.
• Both data and programs can
be shared on networks.
14
Multithreaded
• This feature allows us to handle
multiple tasks simultaneously.
• Designed to run multiple
threads.
• Easy to implement.
• Other systems have provided
facilities via light weight
libraries, but Java has in-built
language support.
• Great for multimedia displays.
15
Dynamic & Extensible
• Provides a highly dynamic
runtime environment.
• Allows dynamically linking in new
class libraries, methods and
objects.
• New code can be linked on
demand from anywhere on the
network and new types can be
created as needed dynamically.
16
• Class definitions take the similar form in java as in C++, but there
is no closing semicolon.
• Operator overloading is not possible in java.
• Java has no templates as in C++.
• Java doesn’t provide direct support for multiple inheritance of
classes. We can accomplish multiple inheritance using a new
feature called ‘interface’.
• Java does not support global variables. Every variables and
method is declared within class and forms part of that class.
• Java doesn’t use pointers.
• The destructor function is replaced with a finalize() function.
• There are no header files in java.
• Java supports multithreading.
JAVA Vs C++
17
JDK is a free software development package from Sun Microsystems. Java
Development Kit (JDK) contains tools needed to develop the Java
programs, and JRE to run the programs. The Basic tools are-
• appletviewer – Run and debug applets without a web browser.
• Java – The java interpreter runs the Java applets & applications by
reading and interpreting byte code files. The same launcher is
used for deployment and development purpose.
• Javac – This is the core of java, which translates the java source code to
bytecode files that the interpreter can understand.
• javadoc – It is used to generate API documentation.
• javah – Produces header files for use with native methods.
• javap – Java disassembler, which enables us to convert bytecode files
into a program description.
• jdb – Java Debugger, which helps us to find errors in our programs.
JAVA Development Kit
18
• Java Runtime Environment contains JVM, class libraries, and other
supporting files. It does not contain any development tools such as compiler,
debugger, etc. Actually JVM runs the program, and it uses the class libraries,
and other supporting files provided in JRE. If you want to run any java
program, you need to have JRE installed in the system. It primarily contains-
• Java Virtual Machine – interprets the intermediate java byte code and
generates the desired output.
• Runtime class libraries – contains set of class libraries.
• User Interface Toolkits – AWT and Swing are examples of toolkits that
support various input methods for the users to interact with the application
program.
• Deployment Technologies –
– Java plug-in: for execution of a Java applet on the browser.
– Java web Start: for remote deployment of an application.
JAVA Runtime Environment
19
• talk at me at
sir@computersirkiclass.com
• Share this information with as
many people as possible.
• Keep visiting
www.computersirkiclass.com for
programme updates.

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
Introduction to Java Programming
Introduction to Java Programming Introduction to Java Programming
Introduction to Java Programming
 
Java History
Java HistoryJava History
Java History
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Java basic
Java basicJava basic
Java basic
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
 
History of java'
History of java'History of java'
History of java'
 
Introduction to Java
Introduction to Java Introduction to Java
Introduction to Java
 
Java programming course for beginners
Java programming course for beginnersJava programming course for beginners
Java programming course for beginners
 
Important features of java
Important features of javaImportant features of java
Important features of java
 
JVM
JVMJVM
JVM
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Features of JAVA Programming Language.
Features of JAVA Programming Language.Features of JAVA Programming Language.
Features of JAVA Programming Language.
 
Java seminar
Java seminarJava seminar
Java seminar
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
 
Learn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat ShahriyarLearn Java with Dr. Rifat Shahriyar
Learn Java with Dr. Rifat Shahriyar
 

Similar a Java Introduction

Similar a Java Introduction (20)

JAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptxJAVA_Day1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
 
JAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptxJAVAPart1_BasicIntroduction.pptx
JAVAPart1_BasicIntroduction.pptx
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
 
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptxJAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
 
java full 1.docx
java full 1.docxjava full 1.docx
java full 1.docx
 
java full.docx
java full.docxjava full.docx
java full.docx
 
java completed units.docx
java completed units.docxjava completed units.docx
java completed units.docx
 
java full 1 (Recovered).docx
java full 1 (Recovered).docxjava full 1 (Recovered).docx
java full 1 (Recovered).docx
 
1 java introduction
1 java introduction1 java introduction
1 java introduction
 
1 java intro
1 java intro1 java intro
1 java intro
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Java (1)
Java (1)Java (1)
Java (1)
 
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
JAVA INTRODUCTION - 1
JAVA INTRODUCTION - 1JAVA INTRODUCTION - 1
JAVA INTRODUCTION - 1
 
Lecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 FastLecture-01 _Java Introduction CS 441 Fast
Lecture-01 _Java Introduction CS 441 Fast
 
OOP - Lecture02 - Introduction to Java.pptx
OOP - Lecture02 - Introduction to Java.pptxOOP - Lecture02 - Introduction to Java.pptx
OOP - Lecture02 - Introduction to Java.pptx
 
1 Module 1 Introduction.pptx
1 Module 1 Introduction.pptx1 Module 1 Introduction.pptx
1 Module 1 Introduction.pptx
 

Más de sunmitraeducation

Más de sunmitraeducation (20)

Installing JDK and first java program
Installing JDK and first java programInstalling JDK and first java program
Installing JDK and first java program
 
Project1 VB
Project1 VBProject1 VB
Project1 VB
 
Project1 CS
Project1 CSProject1 CS
Project1 CS
 
Grid Vew Control VB
Grid Vew Control VBGrid Vew Control VB
Grid Vew Control VB
 
Grid View Control CS
Grid View Control CSGrid View Control CS
Grid View Control CS
 
Ms Access
Ms AccessMs Access
Ms Access
 
Database Basics Theory
Database Basics TheoryDatabase Basics Theory
Database Basics Theory
 
Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3
 
Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3
 
Progamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VBProgamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VB
 
Programming Primer EncapsulationVB
Programming Primer EncapsulationVBProgramming Primer EncapsulationVB
Programming Primer EncapsulationVB
 
Programming Primer Encapsulation CS
Programming Primer Encapsulation CSProgramming Primer Encapsulation CS
Programming Primer Encapsulation CS
 
Programming Primer Inheritance VB
Programming Primer Inheritance VBProgramming Primer Inheritance VB
Programming Primer Inheritance VB
 
Programming Primer Inheritance CS
Programming Primer Inheritance CSProgramming Primer Inheritance CS
Programming Primer Inheritance CS
 
ProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPSProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPS
 
Web Server Controls VB Set 1
Web Server Controls VB Set 1Web Server Controls VB Set 1
Web Server Controls VB Set 1
 
Web Server Controls CS Set
Web Server Controls CS Set Web Server Controls CS Set
Web Server Controls CS Set
 
Web Controls Set-1
Web Controls Set-1Web Controls Set-1
Web Controls Set-1
 
Understanding IDEs
Understanding IDEsUnderstanding IDEs
Understanding IDEs
 
Html Server Image Control VB
Html Server Image Control VBHtml Server Image Control VB
Html Server Image Control VB
 

Último

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 

Último (20)

Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Java Introduction

  • 2. 2 • History of JAVA • Advantages of JAVA • JAVA Vs C++ • JAVA Development Kit(JDK) • JAVA Runtime Environment OUTLINE
  • 3. 3 History Of JAVA-1 • Java is a high level object-oriented programming language developed by James Gosling at Sun Microsystems in the early 1990s. • James Gosling was unhappy using c++ programming language so he developed Java. • Originally designed in (1991) as a small language for consumer electronics (cable boxes, toasters etc.) • A team of Sun Microsystems in the guidance of James Gosling decided to develop an advanced programming language for the betterment of consumer electronic devices.
  • 4. 4 History Of JAVA-2 • They developed a platform independent software based on the power of networks that can run on different application areas, such as computers and electronic devices. • It was initially called 'Oak‘. • It was renamed as 'JAVA' released in 1995 as a core component of Sun Microsystems Java platform.
  • 5. 5 Java Versions Version Date JDK 1.0 23-Jan-1996 JDK 1.1 19-feb-1997 J2SE 1.2 8-Dec-1998 J2SE 1.3 8-May-2000 J2SE 1.4 06-Feb-2002 J2SE 5.0 30-Sep-2004 Java SE 6 11-Dec-2006 Java SE 7 28-July-2011 Other Version of JAVA along with their release dates -
  • 6. 6 Advantages Of JAVA • Simple & Familiar • Object-Oriented • Compiled & Interpreted • Platform Independent &Portable • Robust • Secure • Distributed • Multithreaded • Dynamic & Extensible.
  • 7. 7 Simple & Familiar • Java was designed to be simple and familiar to learn language. • Fundamental concepts can be grasped quickly as the features borrowed from C & C++. • Features were removed that led to poor programming practices or were rarely used. • It does not use pointers, goto statement, Preprocessor header files etc.
  • 8. 8 Object-Oriented • All coding and data reside within object and classes. • Java has built-In exception handling. • Everything in Java (except the primitive data types) is an object. • The object model in java is simple and easy to extend so that complex programming problems can be reduced to simple solutions. • Extensive set of classes, arranged in packages e.g. java.awt, java.io, java.net .
  • 9. 9 Compiled & Interpreted • Java is both a compiled and Interpreted language. • Java Compiler generates platform-independent byte codes that are interpreted into machine readable instructions by a Java Virtual Machine (Java Interpreter) at runtime.
  • 10. 10 Platform-Independent & Portable • Java programs are designed to work in a networked environment on a variety of computers and operating systems. • The size of the primitive data types are machine independent. • Compiler generates platform- independent byte codes rather than native machine code, so it can be implemented on any machine.
  • 11. 11 Robust • Java has hard-and-fast rules for compile-time and runtime error checking. • Java supports automatic garbage collection so all memory corruptions or unauthorized memory accesses are impossible. • Many error-prone features of C/C++ programming were removed.
  • 12. 12 Secure • Usage in networked environment requires more security. • JVM verifies all byte codes before execution & ensures all programs follow the rules regarding object access and usage. • Java ensures that program cannot gain access to memory locations without proper authorization.
  • 13. 13 Distributed • Java is network friendly. • Java is designed as a distributed language for creating applications on networks. • Multiple programmers can work together on a single project from multiple remote locations. • Both data and programs can be shared on networks.
  • 14. 14 Multithreaded • This feature allows us to handle multiple tasks simultaneously. • Designed to run multiple threads. • Easy to implement. • Other systems have provided facilities via light weight libraries, but Java has in-built language support. • Great for multimedia displays.
  • 15. 15 Dynamic & Extensible • Provides a highly dynamic runtime environment. • Allows dynamically linking in new class libraries, methods and objects. • New code can be linked on demand from anywhere on the network and new types can be created as needed dynamically.
  • 16. 16 • Class definitions take the similar form in java as in C++, but there is no closing semicolon. • Operator overloading is not possible in java. • Java has no templates as in C++. • Java doesn’t provide direct support for multiple inheritance of classes. We can accomplish multiple inheritance using a new feature called ‘interface’. • Java does not support global variables. Every variables and method is declared within class and forms part of that class. • Java doesn’t use pointers. • The destructor function is replaced with a finalize() function. • There are no header files in java. • Java supports multithreading. JAVA Vs C++
  • 17. 17 JDK is a free software development package from Sun Microsystems. Java Development Kit (JDK) contains tools needed to develop the Java programs, and JRE to run the programs. The Basic tools are- • appletviewer – Run and debug applets without a web browser. • Java – The java interpreter runs the Java applets & applications by reading and interpreting byte code files. The same launcher is used for deployment and development purpose. • Javac – This is the core of java, which translates the java source code to bytecode files that the interpreter can understand. • javadoc – It is used to generate API documentation. • javah – Produces header files for use with native methods. • javap – Java disassembler, which enables us to convert bytecode files into a program description. • jdb – Java Debugger, which helps us to find errors in our programs. JAVA Development Kit
  • 18. 18 • Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger, etc. Actually JVM runs the program, and it uses the class libraries, and other supporting files provided in JRE. If you want to run any java program, you need to have JRE installed in the system. It primarily contains- • Java Virtual Machine – interprets the intermediate java byte code and generates the desired output. • Runtime class libraries – contains set of class libraries. • User Interface Toolkits – AWT and Swing are examples of toolkits that support various input methods for the users to interact with the application program. • Deployment Technologies – – Java plug-in: for execution of a Java applet on the browser. – Java web Start: for remote deployment of an application. JAVA Runtime Environment
  • 19. 19 • talk at me at sir@computersirkiclass.com • Share this information with as many people as possible. • Keep visiting www.computersirkiclass.com for programme updates.