SlideShare a Scribd company logo
JAVA
"WRITE ONCE, RUN ANYWHERE”
Lec--1
By: Zubair Khalid
£ What is Java?
£ Features of Java?
£ Why it is platform independent?
£ What is JVM, JDK, JRE, IDE?
Java
£ Java is a programming language and platform
£ Released by sun microsystems in 1995
£ Lot of applications and websites don’t work
until you have installed java
£ Java is fast, secure & reliable
What is Java
1) Object Oriented
2) Compiled & Interpreted
3) Platform independent & portable
4) Distributed (java.net package for developing N/W
Applications)
5) Multi-threaded (java.lanq package contains thread
class)
6) Dynamic (C, C++ Native methods can be used)
7) Robust & Secure
Features of Java
£ Platform = hardware + operating system
E.G.: Dell + windows 8.1
£ In case of C or C++ (which are not platform independent)
compiler generate the .Exe file that is OS dependent so when we
run this .Exe file on another OS it will not run because this file is
OS dependent
What is Platform Independence?
JAVA COMPILATION AND
EXECUTION
₪ Each OS has separate JVM to read
Bytecode in its own way.
₪ Means that JVM depends on OS.
₪ If it does not, then there should be
only one JVM block in picture that
would be leading to every OS.
Java Code
(.java)
JAVA
Compile
r
Byte Code
(.Class)
JVM JVM JVM
Windows Linux Mac
How Java is Platform Independent
(OS Independent)
£ Stands for java runtime
environment
£ Implementation of JVM
£ Physically exists
£ Set of libraries + other files
Set of libraries
E.g. rt.jarJVM
Other files
What is JRE?
£ Stands for java
development kit
£ Full featured SDK for java
£ Includes JRE + compilers +
tools
£ Set of libraries + other
files
What is JDK?
Set of libraries
E.g. rt.jarJVM
Other files
Development Tools.
E.g. Javac.java etc.
JRE
Inside JVM
Machine Code
(0101001)
JAVA
Interpret
er
Byte Code
(.Class)
What is JVM?
Converts Byte Code into real
Machine code
Description of Java (Conceptual Diagram)
What is IDE?
£ Stands for integrated development
environment
£ Provides basic tools for writing and
testing
£ Consists of
£ Code Editor
£ Compiler or Interpreter
£ Debugger
Java IDE
£ Some of most famous Java IDE’s are
following
£ Eclipse
£ NetBeans
£ Android Studio

More Related Content

PPTX
Java History
PPTX
PPTX
PPTX
Java Class 2
PPTX
History of java'
PPTX
PDF
History of java
PPT
Evolution Of Java
Java History
Java Class 2
History of java'
History of java
Evolution Of Java

What's hot (20)

PPTX
Java byte code presentation
PPTX
2. hello java
PPTX
Evolution of java By Abbas khan
PPT
Evolution of java
PDF
Java introduction
PPT
The Evolution of Java
PPTX
Java virtual machine
PPTX
Introduction to java
PDF
Basics of java
PDF
itft-Java evolution
PPTX
What is java? Components of java
PDF
History of Java 1/2
PPT
Java Virtual Machine
PPTX
Java architecture
PPT
Java-java virtual machine
PPTX
Maven and versioning
PPT
A begineers guide of JAVA - Getting Started
PPT
CS Lesson: Introduction to the Java virtual Machine
PDF
Java Virtual Machine - Internal Architecture
Java byte code presentation
2. hello java
Evolution of java By Abbas khan
Evolution of java
Java introduction
The Evolution of Java
Java virtual machine
Introduction to java
Basics of java
itft-Java evolution
What is java? Components of java
History of Java 1/2
Java Virtual Machine
Java architecture
Java-java virtual machine
Maven and versioning
A begineers guide of JAVA - Getting Started
CS Lesson: Introduction to the Java virtual Machine
Java Virtual Machine - Internal Architecture
Ad

Similar to Java -lec-1 (20)

PPTX
Lecture java variable , data type, token
PPTX
JRE , JDK and platform independent nature of JAVA
PPTX
Unit1 JAVA.pptx
PDF
What is java
PPTX
Java Class1
PPTX
Introduction to JAVA
PPTX
Introduction of java
PPTX
Introduction of java
PPT
PPS Java Overview Unit I.ppt
PPT
PPS Java Overview Unit I.ppt
PPTX
Java chapter 1 basic introduction Unit-1.pptx
PPTX
UNIT 1 Programming in java Bsc program.pptx
PPTX
JAVAPart1_BasicIntroduction.pptx
PPTX
JAVA_Day1_BasicIntroduction.pptx
PDF
What is Java
PDF
Core Java-1 (1).pdf
PPTX
Object Oriented Programming Part 1 of Unit 1
PPTX
Java Programming Tutorials Basic to Advanced 1
PDF
Java Introduction | PDF
PDF
TechSearchWeb Tutorials.pdf
Lecture java variable , data type, token
JRE , JDK and platform independent nature of JAVA
Unit1 JAVA.pptx
What is java
Java Class1
Introduction to JAVA
Introduction of java
Introduction of java
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
Java chapter 1 basic introduction Unit-1.pptx
UNIT 1 Programming in java Bsc program.pptx
JAVAPart1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
What is Java
Core Java-1 (1).pdf
Object Oriented Programming Part 1 of Unit 1
Java Programming Tutorials Basic to Advanced 1
Java Introduction | PDF
TechSearchWeb Tutorials.pdf
Ad

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Spectroscopy.pptx food analysis technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
KodekX | Application Modernization Development
PDF
Encapsulation theory and applications.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Unlocking AI with Model Context Protocol (MCP)
Reach Out and Touch Someone: Haptics and Empathic Computing
Diabetes mellitus diagnosis method based random forest with bat algorithm
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Machine learning based COVID-19 study performance prediction
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Network Security Unit 5.pdf for BCA BBA.
Understanding_Digital_Forensics_Presentation.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Review of recent advances in non-invasive hemoglobin estimation
Spectroscopy.pptx food analysis technology
MYSQL Presentation for SQL database connectivity
KodekX | Application Modernization Development
Encapsulation theory and applications.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

Java -lec-1

  • 1. JAVA "WRITE ONCE, RUN ANYWHERE” Lec--1 By: Zubair Khalid
  • 2. £ What is Java? £ Features of Java? £ Why it is platform independent? £ What is JVM, JDK, JRE, IDE? Java
  • 3. £ Java is a programming language and platform £ Released by sun microsystems in 1995 £ Lot of applications and websites don’t work until you have installed java £ Java is fast, secure & reliable What is Java
  • 4. 1) Object Oriented 2) Compiled & Interpreted 3) Platform independent & portable 4) Distributed (java.net package for developing N/W Applications) 5) Multi-threaded (java.lanq package contains thread class) 6) Dynamic (C, C++ Native methods can be used) 7) Robust & Secure Features of Java
  • 5. £ Platform = hardware + operating system E.G.: Dell + windows 8.1 £ In case of C or C++ (which are not platform independent) compiler generate the .Exe file that is OS dependent so when we run this .Exe file on another OS it will not run because this file is OS dependent What is Platform Independence?
  • 6. JAVA COMPILATION AND EXECUTION ₪ Each OS has separate JVM to read Bytecode in its own way. ₪ Means that JVM depends on OS. ₪ If it does not, then there should be only one JVM block in picture that would be leading to every OS. Java Code (.java) JAVA Compile r Byte Code (.Class) JVM JVM JVM Windows Linux Mac How Java is Platform Independent (OS Independent)
  • 7. £ Stands for java runtime environment £ Implementation of JVM £ Physically exists £ Set of libraries + other files Set of libraries E.g. rt.jarJVM Other files What is JRE?
  • 8. £ Stands for java development kit £ Full featured SDK for java £ Includes JRE + compilers + tools £ Set of libraries + other files What is JDK? Set of libraries E.g. rt.jarJVM Other files Development Tools. E.g. Javac.java etc. JRE
  • 9. Inside JVM Machine Code (0101001) JAVA Interpret er Byte Code (.Class) What is JVM? Converts Byte Code into real Machine code
  • 10. Description of Java (Conceptual Diagram)
  • 11. What is IDE? £ Stands for integrated development environment £ Provides basic tools for writing and testing £ Consists of £ Code Editor £ Compiler or Interpreter £ Debugger
  • 12. Java IDE £ Some of most famous Java IDE’s are following £ Eclipse £ NetBeans £ Android Studio