SlideShare a Scribd company logo

Introduction
Enosis Learning

 Java is one of the world's most important and widely
used computer languages, and it has held this
distinction for many years.
Overview Of Java

 Java was developed by James Ghosling, Patrick
Naughton, Mike Sheridan at Sun Microsystems Inc.
in 1991. It took 18 months to develop the first
working version.
 The initial name was Oak but it was renamed
to Java in 1995 as OAK was a registered trademark
of another Tech company.
Creation of Java

 Java was initially launched as Java 1.0 but soon after
its initial release, Java 1.1 was launched. Java 1.1
redefined event handling, new library elements were
added.
 In Java 1.2 Swing and Collection framework was
added and suspend(), resume() and stop()methods
were deprecated from Thread class
Evolution Of Java

 Java is widely used in every corner of world and of
human life. Java is not only used in softwares but is
also widely used in designing hardware controlling
software components. There are more than 930
million JRE downloads each year and 3 billion
mobile phones run java.
Application of Java

 Following are some other usage of Java :
 Developing Desktop Applications
 Web Applications like Linkedin.com, Snapdeal.com
etc
 Mobile Operating System like Android
 Embedded Systems
 Robotics and games etc.
Conti…

Features Of Java

 Java is easy to learn and its syntax is quite simple,
clean and easy to understand. The confusing and
ambiguous concepts of C++ are either left out in Java
or they have been re-implemented in a cleaner way.
 Eg : Pointers and Operator Overloading are not there
in java but were an important part of C++.
Simple

 In java everything is Object which has some data and
behaviour. Java can be easily extended as it is based
on Object Model.
Object Oriented

 Java makes an effort to eliminate error prone codes
by emphasizing mainly on compile time error
checking and runtime checking. But the main areas
which Java improved were Memory Management
and mishandled Exceptions by introducing
automatic Garbage Collector and Exception
Handling
Robust

 Unlike other programming languages such as C, C++
etc which are compiled into platform specific
machines. Java is guaranteed to be write-once, run-
anywhere language.
Platform Independent

 When it comes to security, Java is always the first
choice. With java secure features it enable us to
develop virus free, temper free system. Java program
always runs in Java runtime environment with
almost null interaction with system OS, hence it is
more secure.
Secure

 Java multithreading feature makes it possible to
write program that can do many tasks
simultaneously. Benefit of multithreading is that it
utilizes same memory and other resources to execute
multiple threads at the same time, like While typing,
grammatical errors are checked along.
Multi Threading

 Compiler generates bytecodes, which have nothing
to do with a particular computer architecture, hence
a Java program is easy to intrepret on any machine.
Architectural Neutral

 Java Byte code can be carried to any platform. No
implementation dependent features. Everything
related to storage is predefined, example: size of
primitive data types
Portable

 Java is an interpreted language, so it will never be as
fast as a compiled language like C or C++. But, Java
enables high performance with the use of just-in-
time compiler.
High Performance

Setting Classpath for
Java

 Java virtual Machine(JVM) is a virtual Machine that
provides runtime environment to execute java byte
code. The JVM doesn't understand Java typo, that's
why you compile your *.java files to
obtain *.class files that contain the bytecodes
understandable by the JVM.
 JVM control execution of every Java program. It
enables features such as automated exception
handling, Garbage-collected heap.
What is JVM?

JVM Architecture

 Class Loader : Class loader loads the Class for
execution.
 Method area : Stores pre-class structure as constant
pool.
 Heap : Heap is in which objects are allocated.
 Stack : Local variables and partial results are store
here. Each thread has a private JVM stack created
when the thread is created.
 Program register : Program register holds the address
of JVM instruction currently being executed.
Conti..

 Native method stack : It contains all native used in
application.
 Executive Engine : Execution engine controls the execute
of instructions contained in the methods of the classes.
 Native Method Interface : Native method interface gives
an interface between java code and native code during
execution.
 Native Method Libraries : Native Libraries consist of
files required for the execution of native code.
Conti..

Difference between
JDK and JRE

 JRE : The Java Runtime Environment (JRE)
provides the libraries, the Java Virtual Machine,
and other components to run applets and
applications written in the Java programming
language.
 JRE does not contain tools and utilities such as
compilers or debuggers for developing applets
and applications.

JRE

 JDK : The JDK also called Java Development Kit is a
superset of the JRE, and contains everything that is
in the JRE, plus tools such as the compilers and
debuggers necessary for developing applets and
applications.

JDK

More Related Content

PPTX
Java ms harsha
Harsha Batra
 
PPS
Introduction to Java
Ankita Totala
 
PDF
Java Introduction | PDF
Geekster
 
PPTX
JAVA PROGRAMMING-Unit I - Final PPT.pptx
SuganthiDPSGRKCW
 
PPTX
Unit1 introduction to Java
DevaKumari Vijay
 
PPTX
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
PDF
Java programming Evolution-OverviewOfJava.pdf
AbhishekSingh961152
 
PDF
Java chapter 1
Mukesh Tekwani
 
Java ms harsha
Harsha Batra
 
Introduction to Java
Ankita Totala
 
Java Introduction | PDF
Geekster
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
SuganthiDPSGRKCW
 
Unit1 introduction to Java
DevaKumari Vijay
 
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
Java programming Evolution-OverviewOfJava.pdf
AbhishekSingh961152
 
Java chapter 1
Mukesh Tekwani
 

Similar to Iintroduction to java , Java Coding , basics of java.pptx (20)

PPTX
Java Lecture 1
Qualys
 
PPTX
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
PPTX
Lecture java variable , data type, token
ChandrashekharSingh859453
 
PDF
0f0cef_1dac552af56c4338ab0672859199e693.pdf
DeepakChaudhriAmbali
 
PPTX
Lecture - 1 introduction to java
manish kumar
 
PPTX
Java session2
Jigarthacker
 
PPTX
Unit1 JAVA.pptx
RahulAnand111531
 
PPTX
Presentación rs232 java
John Rojas
 
PDF
TechSearchWeb.pdf
TechSearchWeb
 
PDF
Technology Tutorial.pdf
TechSearchWeb
 
PDF
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
PPTX
JAVAPart1_BasicIntroduction.pptx
Murugesh33
 
PPTX
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
PDF
Java Notes .pdf
gokulprasanna4
 
PPT
Java features
Madishetty Prathibha
 
PDF
Java unit 1
Shipra Swati
 
PPT
Java2020 programming basics and fundamentals
swecsaleem
 
Java Lecture 1
Qualys
 
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
Lecture java variable , data type, token
ChandrashekharSingh859453
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
DeepakChaudhriAmbali
 
Lecture - 1 introduction to java
manish kumar
 
Java session2
Jigarthacker
 
Unit1 JAVA.pptx
RahulAnand111531
 
Presentación rs232 java
John Rojas
 
TechSearchWeb.pdf
TechSearchWeb
 
Technology Tutorial.pdf
TechSearchWeb
 
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
JAVAPart1_BasicIntroduction.pptx
Murugesh33
 
JAVA_Day1_BasicIntroduction.pptx
Murugesh33
 
Java Notes .pdf
gokulprasanna4
 
Java features
Madishetty Prathibha
 
Java unit 1
Shipra Swati
 
Java2020 programming basics and fundamentals
swecsaleem
 
Ad

Recently uploaded (20)

PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PDF
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
PPTX
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Autodock-for-Beginners by Rahul D Jawarkar.pptx
Rahul Jawarkar
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
Introduction to pediatric nursing in 5th Sem..pptx
AneetaSharma15
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
Ad

Iintroduction to java , Java Coding , basics of java.pptx

  • 2.   Java is one of the world's most important and widely used computer languages, and it has held this distinction for many years. Overview Of Java
  • 3.   Java was developed by James Ghosling, Patrick Naughton, Mike Sheridan at Sun Microsystems Inc. in 1991. It took 18 months to develop the first working version.  The initial name was Oak but it was renamed to Java in 1995 as OAK was a registered trademark of another Tech company. Creation of Java
  • 4.   Java was initially launched as Java 1.0 but soon after its initial release, Java 1.1 was launched. Java 1.1 redefined event handling, new library elements were added.  In Java 1.2 Swing and Collection framework was added and suspend(), resume() and stop()methods were deprecated from Thread class Evolution Of Java
  • 5.   Java is widely used in every corner of world and of human life. Java is not only used in softwares but is also widely used in designing hardware controlling software components. There are more than 930 million JRE downloads each year and 3 billion mobile phones run java. Application of Java
  • 6.   Following are some other usage of Java :  Developing Desktop Applications  Web Applications like Linkedin.com, Snapdeal.com etc  Mobile Operating System like Android  Embedded Systems  Robotics and games etc. Conti…
  • 8.   Java is easy to learn and its syntax is quite simple, clean and easy to understand. The confusing and ambiguous concepts of C++ are either left out in Java or they have been re-implemented in a cleaner way.  Eg : Pointers and Operator Overloading are not there in java but were an important part of C++. Simple
  • 9.   In java everything is Object which has some data and behaviour. Java can be easily extended as it is based on Object Model. Object Oriented
  • 10.   Java makes an effort to eliminate error prone codes by emphasizing mainly on compile time error checking and runtime checking. But the main areas which Java improved were Memory Management and mishandled Exceptions by introducing automatic Garbage Collector and Exception Handling Robust
  • 11.   Unlike other programming languages such as C, C++ etc which are compiled into platform specific machines. Java is guaranteed to be write-once, run- anywhere language. Platform Independent
  • 12.   When it comes to security, Java is always the first choice. With java secure features it enable us to develop virus free, temper free system. Java program always runs in Java runtime environment with almost null interaction with system OS, hence it is more secure. Secure
  • 13.   Java multithreading feature makes it possible to write program that can do many tasks simultaneously. Benefit of multithreading is that it utilizes same memory and other resources to execute multiple threads at the same time, like While typing, grammatical errors are checked along. Multi Threading
  • 14.   Compiler generates bytecodes, which have nothing to do with a particular computer architecture, hence a Java program is easy to intrepret on any machine. Architectural Neutral
  • 15.   Java Byte code can be carried to any platform. No implementation dependent features. Everything related to storage is predefined, example: size of primitive data types Portable
  • 16.   Java is an interpreted language, so it will never be as fast as a compiled language like C or C++. But, Java enables high performance with the use of just-in- time compiler. High Performance
  • 18.   Java virtual Machine(JVM) is a virtual Machine that provides runtime environment to execute java byte code. The JVM doesn't understand Java typo, that's why you compile your *.java files to obtain *.class files that contain the bytecodes understandable by the JVM.  JVM control execution of every Java program. It enables features such as automated exception handling, Garbage-collected heap. What is JVM?
  • 20.   Class Loader : Class loader loads the Class for execution.  Method area : Stores pre-class structure as constant pool.  Heap : Heap is in which objects are allocated.  Stack : Local variables and partial results are store here. Each thread has a private JVM stack created when the thread is created.  Program register : Program register holds the address of JVM instruction currently being executed. Conti..
  • 21.   Native method stack : It contains all native used in application.  Executive Engine : Execution engine controls the execute of instructions contained in the methods of the classes.  Native Method Interface : Native method interface gives an interface between java code and native code during execution.  Native Method Libraries : Native Libraries consist of files required for the execution of native code. Conti..
  • 23.   JRE : The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language.  JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications.
  • 25.   JDK : The JDK also called Java Development Kit is a superset of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.