SlideShare ist ein Scribd-Unternehmen logo
1 von 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.

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their featuresIntroduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their featuresAkash Badone
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introductionjyoti_lakhani
 
Introduction to java
Introduction to java Introduction to java
Introduction to java Java Lover
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core javamahir jain
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java ProgrammingRavi Kant Sahu
 
Java Development Kit (jdk)
Java Development Kit (jdk)Java Development Kit (jdk)
Java Development Kit (jdk)Jadavsejal
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in JavaNiloy Saha
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)arvind pandey
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1RubaNagarajan
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java ProgrammingMath-Circle
 

Was ist angesagt? (20)

Introduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their featuresIntroduction to Basic Java Versions and their features
Introduction to Basic Java Versions and their features
 
Java
JavaJava
Java
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Java seminar
Java seminarJava seminar
Java seminar
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
Basic of Java
Basic of JavaBasic of Java
Basic of Java
 
C#.NET
C#.NETC#.NET
C#.NET
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
 
Java Development Kit (jdk)
Java Development Kit (jdk)Java Development Kit (jdk)
Java Development Kit (jdk)
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Java History
Java HistoryJava History
Java History
 
Introduction to Java -unit-1
Introduction to Java -unit-1Introduction to Java -unit-1
Introduction to Java -unit-1
 
Basic Java Programming
Basic Java ProgrammingBasic Java Programming
Basic Java Programming
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 

Ähnlich wie Java Introduction

Ähnlich wie 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
 
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
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
 

Mehr von sunmitraeducation

Mehr von 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
 

Kürzlich hochgeladen

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
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
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
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
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 
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...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
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?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

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.