SlideShare a Scribd company logo
Course Title: Programming with Java
What is Java?
• Java is a general-purpose computer programming
language that is concurrent, class-based, object-
oriented, and specifically designed to have as few
implementation dependencies as possible.
• It is intended to let application developers "write once,
run anywhere" (WORA), meaning that compiled Java
code can run on all platforms that support Java without
the need for recompilation.
• Java applications are typically compiled to bytecode
that can run on any Java virtual machine (JVM)
regardless of computer architecture.
Major features
• Designed by : James Gosling and Sun
Microsystems. The language was initially called
Oak after an oak tree .
• Developer : Oracle Corporation
• Stable release : Java Standard Edition 8 Update
60 (1.8.0_60) / August 18, 2015
• Implementation language: C and C++
• OS : Cross-platform (multi-platform)
• Filename extensions: .java , .class, .jar (Java
Archive)
WORA/ WORE
• "Write once, run anywhere" (WORA), or sometimes
write once, run everywhere (WORE)
• Ideally, this means Java can be developed on any
device, compiled into a standard bytecode and be
expected to run on any device equipped with a Java
virtual machine (JVM).
• The installation of a JVM or Java interpreter on chips,
devices or software packages has become an industry
standard practice.
• This means a programmer can develop code on a PC
and can expect it to run on Java enabled cell phones, as
well as on routers and mainframes equipped with Java,
without any adjustments.
What is Bytecode in Java ?
• Bytecode is nothing but the intermediate representation of
Java source code which is produced by the Java compiler by
compiling that source code.
• This byte code is an machine independent code.
• It is not completely a compiled code but it is an
intermediate code somewhere in the middle which is later
interpreted and executed by JVM.
• Bytecode is a machine code for JVM.
• But the machine code is platform specific whereas
bytecode is platform independent that is the main
difference between them.
• It is stored in .class file which is created after compiling the
source code.
What is Bytecode in Java ?
Java applet
• An applet is a special kind of Java program that is
designed to be transmitted over the internet and
automatically executed by a Java compatible web
browser.
• A Java applet is a small application which is
written in Java and delivered to users in the form
of bytecode.
• The user launches the Java applet from a web
page, and the applet is then executed within a
Java Virtual Machine (JVM) in a process separate
from the web browser itself.
Java applet
• A Java applet can appear in a frame of the web
page, a new application window, Sun's
AppletViewer, or a stand-alone tool for testing
applets. Java applets were introduced in the first
version of the Java language, which was released
in 1995.
• Java applets can be written in any programming
language that compiles to Java bytecode. They
are usually written in Java, but other languages
such as Jython,JRuby,Pascal,Scala, or Eiffel (via
SmartEiffel) may be used as well.
Principles
There were five primary goals in the creation of the
Java language:
• It must be "simple, object-oriented, and familiar".
• It must be "robust and secure".
• It must be "architecture-neutral and portable".
• It must execute with "high performance".
• It must be "interpreted, threaded, and dynamic".
Java Buzzwords
• Simple
• Secure
• Portable
• Object oriented
• Robust
• Multithreaded
• Architecture neutral
• Interpreted
• High performance
• Distributed
• Dynamic
Java Buzzwords
• Simple:
•Easy to learn
•Easy to write programs using Java
•More expressive.
•Most of the complex or confusing features in
C++ are removed in Java like pointers etc..
Java Buzzwords
• Secure:
•Java provides data security through
encapsulation.
•Also we can write applets in Java which provides
security.
•An applet is a small program which can be
downloaded from one computer to another
automatically.
•There is no need to worry about applets
accessing the system resources which may
compromise security.
Java Buzzwords
• Portable:
•Applications written using Java are portable
in the sense that they can be executed on any
kind of computer containing any CPU or any
operating system.
•When an application written in Java is
compiled, it generates an intermediate code
file called as “bytecode”.
•Bytecode helps Java to achieve portability.
Java Buzzwords
• Object - Oriented:
•Java follows object oriented model.
•So, it supports all the features of object
oriented model like:
Encapsulation
Inheritance
Polymorphism
Abstraction
Java Buzzwords
• Robust:
•A program or an application is said to be
robust(reliable) when it is able to give some
response in any kind of context.
•Some of those features are:
1. Type checking
2. Exception handling
Java Buzzwords
• Multithreaded:
•Java supports multithreading which is not
supported by C and C++.
•A thread is a light weight process.
•Multithreading increases CPU efficiency.
•A program can be divided into several threads
and each thread can be executed concurrently or
in parallel with the other threads.
•Real world example for multithreading is
computer. While we are listening to music, at
the same time we can write in a word document
or play a game.
Java Buzzwords
• Architecture - Neutral:
•Bytecode helps Java to achieve portability.
•Bytecode can be executed on computers
having any kind of operating system or any
kind of CPU.
•Since Java applications can run on any kind of
CPU, Java is architecture – neutral.
Java Buzzwords
• Interpreted and High Performance:
•In Java 1.0 version there is an interpreter for
executing the bytecode. As interpreter is quite
slow when compared to a compiler, java
programs used to execute slowly.
•After Java 1.0 version the interpreter was
replaced with JIT(Just-In-Time) compiler.
•This enhances the program performance
means it executes rapidly.
Java Buzzwords
• Distributed:
•Java supports distributed computation using
Remote Method Invocation (RMI) concept.
•The server and client(s) can communicate
with one another and the computations can
be divided among several computers which
makes the programs to execute rapidly.
•In distributed systems, resources are shared.
Java Buzzwords
• Dynamic:
•The Java Virtual Machine(JVM) maintains a
lot of runtime information about the program
and the objects in the program.
•Libraries are dynamically linked during
runtime.
•So, even if you make dynamic changes to
pieces of code, the program is not effected.
How Java achieved Platform
Independency ?
How Java achieved Platform
Independency ?
• Java achieved platform independency by
moving machine language generation from
compilation phase to execution phase by
introducing bytecodes and JVM.
How Java achieved Platform
Independency ?
How Java achieved Platform
Independency ?
What is the most important feature of
Java?
• Java is a platform independent language. This
is most important feature of Java language.
Platform independent language means
programs written in Java will work on any
computer that has Java installed on it,
regardless of operating system.
• Whereas Multithreading, AWT and Event
Handling, Networking, Database Connection
are important features of java.
Types of Java Software
• Java software is divided into two sub products
• 1) jdk (Java Development Kit)
• 2) jre (Java Run time Environment)
• jdk has both "Compiler + JVM"
• jre has only "JVM"
• JVM is a sub-part of jre and jre is a sub-part of jdk. So
in order to run any java application jre software is
sufficient but if we need to compile and execute the
java program we have to install jdk software.
Types of Java Software
This diagram shows the difference between jdk,jre and JVM.
Thanks for your patience.

More Related Content

PPTX
JRE , JDK and platform independent nature of JAVA
PDF
Introduction to object oriented programming
PPTX
Core java complete ppt(note)
PPT
process creation OS
PPTX
Lecture - 2 Environment setup & JDK, JRE, JVM
PPT
Js ppt
PPTX
Control structures in java
PPT
4 internet programming
JRE , JDK and platform independent nature of JAVA
Introduction to object oriented programming
Core java complete ppt(note)
process creation OS
Lecture - 2 Environment setup & JDK, JRE, JVM
Js ppt
Control structures in java
4 internet programming

What's hot (20)

PPT
Java
PPTX
Deadlock Avoidance in Operating System
PPT
Java features
PDF
Java 8 features
PPTX
Introduction to java
PPTX
Advance Java Topics (J2EE)
PDF
Monitors
PPTX
Introduction to Visual Basic 6.0 Fundamentals
PPT
Black Box Testing
PPTX
Exceptions in Java
PPT
Unit1
PPTX
Java input
PPT
Java-java virtual machine
PPTX
FIT-Unit3 chapter2- Computer Languages
PPTX
Handling I/O in Java
PPS
Jsp element
PPT
Java OOP s concepts and buzzwords
PPTX
Java Data Types
Java
Deadlock Avoidance in Operating System
Java features
Java 8 features
Introduction to java
Advance Java Topics (J2EE)
Monitors
Introduction to Visual Basic 6.0 Fundamentals
Black Box Testing
Exceptions in Java
Unit1
Java input
Java-java virtual machine
FIT-Unit3 chapter2- Computer Languages
Handling I/O in Java
Jsp element
Java OOP s concepts and buzzwords
Java Data Types
Ad

Viewers also liked (16)

PPTX
WindowsAzureSDK1.7
PDF
Cardiology Personal Statement and Guide for Fellows in 2017
PPTX
PPT
KSC GLOBAL SOLUTIONS
PPTX
ServiceFabric-Arch
PPTX
Σημειώσεις wordpress
PPTX
PPTX
WindowsAzureIAAS
PPTX
PowerShell-2
PPTX
#_ varible function
PPTX
PowerShell-1
DOC
PPTX
AzureDocumentDB
PPTX
Windows Azure Marketplace
PPTX
Plano de aula
PPTX
Plano de aula
WindowsAzureSDK1.7
Cardiology Personal Statement and Guide for Fellows in 2017
KSC GLOBAL SOLUTIONS
ServiceFabric-Arch
Σημειώσεις wordpress
WindowsAzureIAAS
PowerShell-2
#_ varible function
PowerShell-1
AzureDocumentDB
Windows Azure Marketplace
Plano de aula
Plano de aula
Ad

Similar to 1 java introduction (20)

PPT
Introduction to Core Java feature and its characteristics
PPT
Java buzzwords
PPT
Computer Basics: Computer introductions for beginners
PPTX
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
PPTX
Java Ch 1.pptx
PPTX
Java Introduction
PPTX
Introduction To Java history, application, features.pptx
PDF
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
PPT
PPS Java Overview Unit I.ppt
PPT
PPS Java Overview Unit I.ppt
PPTX
Object Oriented concept-JAVA-Module-1-PPT.pptx
PPTX
unit1.pptx
PPTX
basic core java up to operator
PPTX
Object Oriented Programming Part 1 of Unit 1
PPTX
Introduction to Java
PPTX
OOP-JAVA-UNIT-1-PPT updated.pptx object oriented programming language using java
PPTX
1.Intro--Why Java.pptx
PPTX
Java chapter 1 basic introduction Unit-1.pptx
PPTX
Chapter-1 Introduction.pptx
PPTX
java basics concepts and the keywords needed
Introduction to Core Java feature and its characteristics
Java buzzwords
Computer Basics: Computer introductions for beginners
JAVA PROGRAM CONSTRUCTS OR LANGUAGE BASICS.pptx
Java Ch 1.pptx
Java Introduction
Introduction To Java history, application, features.pptx
1. JAVA_Module_1-edited - AJIN ABRAHAM.pptx.pdf
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
Object Oriented concept-JAVA-Module-1-PPT.pptx
unit1.pptx
basic core java up to operator
Object Oriented Programming Part 1 of Unit 1
Introduction to Java
OOP-JAVA-UNIT-1-PPT updated.pptx object oriented programming language using java
1.Intro--Why Java.pptx
Java chapter 1 basic introduction Unit-1.pptx
Chapter-1 Introduction.pptx
java basics concepts and the keywords needed

Recently uploaded (20)

PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
PPT on Performance Review to get promotions
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT
introduction to datamining and warehousing
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
Sustainable Sites - Green Building Construction
PDF
Digital Logic Computer Design lecture notes
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
composite construction of structures.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Construction Project Organization Group 2.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
R24 SURVEYING LAB MANUAL for civil enggi
PPT on Performance Review to get promotions
Model Code of Practice - Construction Work - 21102022 .pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
introduction to datamining and warehousing
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
bas. eng. economics group 4 presentation 1.pptx
Current and future trends in Computer Vision.pptx
Geodesy 1.pptx...............................................
Sustainable Sites - Green Building Construction
Digital Logic Computer Design lecture notes
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
composite construction of structures.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Construction Project Organization Group 2.pptx
CH1 Production IntroductoryConcepts.pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

1 java introduction

  • 2. What is Java? • Java is a general-purpose computer programming language that is concurrent, class-based, object- oriented, and specifically designed to have as few implementation dependencies as possible. • It is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation. • Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of computer architecture.
  • 3. Major features • Designed by : James Gosling and Sun Microsystems. The language was initially called Oak after an oak tree . • Developer : Oracle Corporation • Stable release : Java Standard Edition 8 Update 60 (1.8.0_60) / August 18, 2015 • Implementation language: C and C++ • OS : Cross-platform (multi-platform) • Filename extensions: .java , .class, .jar (Java Archive)
  • 4. WORA/ WORE • "Write once, run anywhere" (WORA), or sometimes write once, run everywhere (WORE) • Ideally, this means Java can be developed on any device, compiled into a standard bytecode and be expected to run on any device equipped with a Java virtual machine (JVM). • The installation of a JVM or Java interpreter on chips, devices or software packages has become an industry standard practice. • This means a programmer can develop code on a PC and can expect it to run on Java enabled cell phones, as well as on routers and mainframes equipped with Java, without any adjustments.
  • 5. What is Bytecode in Java ? • Bytecode is nothing but the intermediate representation of Java source code which is produced by the Java compiler by compiling that source code. • This byte code is an machine independent code. • It is not completely a compiled code but it is an intermediate code somewhere in the middle which is later interpreted and executed by JVM. • Bytecode is a machine code for JVM. • But the machine code is platform specific whereas bytecode is platform independent that is the main difference between them. • It is stored in .class file which is created after compiling the source code.
  • 6. What is Bytecode in Java ?
  • 7. Java applet • An applet is a special kind of Java program that is designed to be transmitted over the internet and automatically executed by a Java compatible web browser. • A Java applet is a small application which is written in Java and delivered to users in the form of bytecode. • The user launches the Java applet from a web page, and the applet is then executed within a Java Virtual Machine (JVM) in a process separate from the web browser itself.
  • 8. Java applet • A Java applet can appear in a frame of the web page, a new application window, Sun's AppletViewer, or a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language, which was released in 1995. • Java applets can be written in any programming language that compiles to Java bytecode. They are usually written in Java, but other languages such as Jython,JRuby,Pascal,Scala, or Eiffel (via SmartEiffel) may be used as well.
  • 9. Principles There were five primary goals in the creation of the Java language: • It must be "simple, object-oriented, and familiar". • It must be "robust and secure". • It must be "architecture-neutral and portable". • It must execute with "high performance". • It must be "interpreted, threaded, and dynamic".
  • 10. Java Buzzwords • Simple • Secure • Portable • Object oriented • Robust • Multithreaded • Architecture neutral • Interpreted • High performance • Distributed • Dynamic
  • 11. Java Buzzwords • Simple: •Easy to learn •Easy to write programs using Java •More expressive. •Most of the complex or confusing features in C++ are removed in Java like pointers etc..
  • 12. Java Buzzwords • Secure: •Java provides data security through encapsulation. •Also we can write applets in Java which provides security. •An applet is a small program which can be downloaded from one computer to another automatically. •There is no need to worry about applets accessing the system resources which may compromise security.
  • 13. Java Buzzwords • Portable: •Applications written using Java are portable in the sense that they can be executed on any kind of computer containing any CPU or any operating system. •When an application written in Java is compiled, it generates an intermediate code file called as “bytecode”. •Bytecode helps Java to achieve portability.
  • 14. Java Buzzwords • Object - Oriented: •Java follows object oriented model. •So, it supports all the features of object oriented model like: Encapsulation Inheritance Polymorphism Abstraction
  • 15. Java Buzzwords • Robust: •A program or an application is said to be robust(reliable) when it is able to give some response in any kind of context. •Some of those features are: 1. Type checking 2. Exception handling
  • 16. Java Buzzwords • Multithreaded: •Java supports multithreading which is not supported by C and C++. •A thread is a light weight process. •Multithreading increases CPU efficiency. •A program can be divided into several threads and each thread can be executed concurrently or in parallel with the other threads. •Real world example for multithreading is computer. While we are listening to music, at the same time we can write in a word document or play a game.
  • 17. Java Buzzwords • Architecture - Neutral: •Bytecode helps Java to achieve portability. •Bytecode can be executed on computers having any kind of operating system or any kind of CPU. •Since Java applications can run on any kind of CPU, Java is architecture – neutral.
  • 18. Java Buzzwords • Interpreted and High Performance: •In Java 1.0 version there is an interpreter for executing the bytecode. As interpreter is quite slow when compared to a compiler, java programs used to execute slowly. •After Java 1.0 version the interpreter was replaced with JIT(Just-In-Time) compiler. •This enhances the program performance means it executes rapidly.
  • 19. Java Buzzwords • Distributed: •Java supports distributed computation using Remote Method Invocation (RMI) concept. •The server and client(s) can communicate with one another and the computations can be divided among several computers which makes the programs to execute rapidly. •In distributed systems, resources are shared.
  • 20. Java Buzzwords • Dynamic: •The Java Virtual Machine(JVM) maintains a lot of runtime information about the program and the objects in the program. •Libraries are dynamically linked during runtime. •So, even if you make dynamic changes to pieces of code, the program is not effected.
  • 21. How Java achieved Platform Independency ?
  • 22. How Java achieved Platform Independency ? • Java achieved platform independency by moving machine language generation from compilation phase to execution phase by introducing bytecodes and JVM.
  • 23. How Java achieved Platform Independency ?
  • 24. How Java achieved Platform Independency ?
  • 25. What is the most important feature of Java? • Java is a platform independent language. This is most important feature of Java language. Platform independent language means programs written in Java will work on any computer that has Java installed on it, regardless of operating system. • Whereas Multithreading, AWT and Event Handling, Networking, Database Connection are important features of java.
  • 26. Types of Java Software • Java software is divided into two sub products • 1) jdk (Java Development Kit) • 2) jre (Java Run time Environment) • jdk has both "Compiler + JVM" • jre has only "JVM" • JVM is a sub-part of jre and jre is a sub-part of jdk. So in order to run any java application jre software is sufficient but if we need to compile and execute the java program we have to install jdk software.
  • 27. Types of Java Software This diagram shows the difference between jdk,jre and JVM.
  • 28. Thanks for your patience.