SlideShare a Scribd company logo
1 of 11
Java
SDK
The Java SDK comes in three versions:
J2ME - Micro Edition (for handheld and portable devices)
J2SE - Standard Edition (PC development)
J2EE - Enterprise Edition (Distributed and Enterprise Computing)
• The SDK is a set of command line tools for developing Java applications:
• javac - Java Compiler
• java - Java Interpreter (Java VM)
• appletviewer - Run applets without a browser
• javadoc - automated documentation generator
• jdb - Java debugger
• The SDK is NOT and IDE (Integrated Development Environment)
• Command line only. No GUI.
IDE
There are many IDEs available. Some are public domain and
some are commercial:
Symantic Visual Cafe
JBuilder
IBM Visual Age
Kawa
Forte for Java
Eclipse
NetBeans
Many OO modelling tools (such as Together Control Center)
include an IDE.
Most IDEs offer a "demo" mode so you can try before you buy.
Life Cycle
Java
Bytecodes
move locally
or through
network
Java
Source
(.java)
Java
Compiler
Java
Bytecode
(.class )
Java
Interpreter
Just in
Time
Compiler
Runtime System
Class
Loader
Bytecode
Verifier
Java
Class
Libraries
Operating System
Hardware
Runtime
Environment
Compile-time
Environment
Hello.java
// hello.java: Hello Internet program
class Hello
{
public static void main(String args[])
{
System.out.println(“Hello Internet”);
}
}
• Compilation
# javac Hello.java
results in Hello.class
• Execution
# java Hello
Hello Internet
#
• Name of the program (file) is same as name of class having
main.
• In java program is compiled first then interpreted (javac)
• In Compilation results in .class files for all the classes of the
program
• Execution is done for the .class file which have main, therefore
to avoid any confusion we keep the name of program same as
that class name. (java)
Life Cycle of Java code
• public class Comments
• {
• /* A prgm to show comments
• */
• public static void main (String args[])
• { // main is the function which is called to run a prgm
• // public access specifier
• // static no instance is required
• // String args Parameters
• System.out.println("Java has three types of Comments");
• // ; is used as terminator for every statement
• }
• }
• // Prgm to compare print and println
• public class Out
• {
• public static void main(String args[])
• { System.out.println("First Line"); // Next output on new line
• System.out.print("Second Line"); // Next o/p on same line
• System.out.println("Third Line");
• }
• }
public class Conc
{
public static void main(String args[])
{
System.out.println("Hi" + " Hello" + " How r u");
// + results in concatenation of strings
}
}

More Related Content

What's hot

What's hot (20)

Basic difference between jdk,jre,jvm in advance java course
Basic difference between jdk,jre,jvm in advance java courseBasic difference between jdk,jre,jvm in advance java course
Basic difference between jdk,jre,jvm in advance java course
 
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and JitQSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and Jit
 
Java Virtual Machine - Internal Architecture
Java Virtual Machine - Internal ArchitectureJava Virtual Machine - Internal Architecture
Java Virtual Machine - Internal Architecture
 
Java-java virtual machine
Java-java virtual machineJava-java virtual machine
Java-java virtual machine
 
Jvm Architecture
Jvm ArchitectureJvm Architecture
Jvm Architecture
 
JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
 
Java architecture
Java architectureJava architecture
Java architecture
 
Java virtual machine
Java virtual machineJava virtual machine
Java virtual machine
 
JVM- Java Virtual Machine
JVM- Java Virtual MachineJVM- Java Virtual Machine
JVM- Java Virtual Machine
 
JRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVAJRE , JDK and platform independent nature of JAVA
JRE , JDK and platform independent nature of JAVA
 
Architecture diagram of jvm
Architecture diagram of jvmArchitecture diagram of jvm
Architecture diagram of jvm
 
What's Inside a JVM?
What's Inside a JVM?What's Inside a JVM?
What's Inside a JVM?
 
The Java Story
The Java StoryThe Java Story
The Java Story
 
CS Lesson: Introduction to the Java virtual Machine
CS Lesson: Introduction to the Java virtual MachineCS Lesson: Introduction to the Java virtual Machine
CS Lesson: Introduction to the Java virtual Machine
 
Java JVM
Java JVMJava JVM
Java JVM
 
Java Virtual Machine
Java Virtual Machine Java Virtual Machine
Java Virtual Machine
 
Java introduction
Java introductionJava introduction
Java introduction
 
History of java'
History of java'History of java'
History of java'
 
Java Virtual Machine
Java Virtual MachineJava Virtual Machine
Java Virtual Machine
 
What is-java
What is-javaWhat is-java
What is-java
 

Similar to Java Class 2

Java basics notes
Java basics notesJava basics notes
Java basics notes
Nexus
 
Java review00
Java review00Java review00
Java review00
saryu2011
 

Similar to Java Class 2 (20)

Introduction to java programming part 1
Introduction to java programming   part 1Introduction to java programming   part 1
Introduction to java programming part 1
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
Java introduction
Java introductionJava introduction
Java introduction
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
Java introduction
Java introductionJava introduction
Java introduction
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
 
Java programming basics notes for beginners(java programming tutorials)
Java programming basics notes for beginners(java programming tutorials)Java programming basics notes for beginners(java programming tutorials)
Java programming basics notes for beginners(java programming tutorials)
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
 
Java basics notes
Java basics notesJava basics notes
Java basics notes
 
Javalecture 1
Javalecture 1Javalecture 1
Javalecture 1
 
Java platform
Java platformJava platform
Java platform
 
Java review00
Java review00Java review00
Java review00
 
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 basics notes
Java basics notesJava basics notes
Java basics notes
 
JAVA for Every one
JAVA for Every oneJAVA for Every one
JAVA for Every one
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
j-chap1-Basics.ppt
j-chap1-Basics.pptj-chap1-Basics.ppt
j-chap1-Basics.ppt
 
Mpl 1
Mpl 1Mpl 1
Mpl 1
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
 
Introduction to java programming tutorial
Introduction to java programming   tutorialIntroduction to java programming   tutorial
Introduction to java programming tutorial
 

More from Mayank Aggarwal (6)

Java Datatypes
Java DatatypesJava Datatypes
Java Datatypes
 
Java Classes
Java ClassesJava Classes
Java Classes
 
Cloudsim modified
Cloudsim modifiedCloudsim modified
Cloudsim modified
 
Virtualization: Force driving cloud computing
Virtualization: Force driving cloud computingVirtualization: Force driving cloud computing
Virtualization: Force driving cloud computing
 
Cloud Computing : Revised Presentation
Cloud Computing : Revised PresentationCloud Computing : Revised Presentation
Cloud Computing : Revised Presentation
 
Cloud Computing Made Easy
Cloud Computing Made EasyCloud Computing Made Easy
Cloud Computing Made Easy
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+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...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

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
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
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...
 
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
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
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...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
+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...
 

Java Class 2

  • 2. SDK The Java SDK comes in three versions: J2ME - Micro Edition (for handheld and portable devices) J2SE - Standard Edition (PC development) J2EE - Enterprise Edition (Distributed and Enterprise Computing) • The SDK is a set of command line tools for developing Java applications: • javac - Java Compiler • java - Java Interpreter (Java VM) • appletviewer - Run applets without a browser • javadoc - automated documentation generator • jdb - Java debugger • The SDK is NOT and IDE (Integrated Development Environment) • Command line only. No GUI.
  • 3. IDE There are many IDEs available. Some are public domain and some are commercial: Symantic Visual Cafe JBuilder IBM Visual Age Kawa Forte for Java Eclipse NetBeans Many OO modelling tools (such as Together Control Center) include an IDE. Most IDEs offer a "demo" mode so you can try before you buy.
  • 4. Life Cycle Java Bytecodes move locally or through network Java Source (.java) Java Compiler Java Bytecode (.class ) Java Interpreter Just in Time Compiler Runtime System Class Loader Bytecode Verifier Java Class Libraries Operating System Hardware Runtime Environment Compile-time Environment
  • 5. Hello.java // hello.java: Hello Internet program class Hello { public static void main(String args[]) { System.out.println(“Hello Internet”); } }
  • 6. • Compilation # javac Hello.java results in Hello.class • Execution # java Hello Hello Internet #
  • 7. • Name of the program (file) is same as name of class having main. • In java program is compiled first then interpreted (javac) • In Compilation results in .class files for all the classes of the program • Execution is done for the .class file which have main, therefore to avoid any confusion we keep the name of program same as that class name. (java)
  • 8. Life Cycle of Java code
  • 9. • public class Comments • { • /* A prgm to show comments • */ • public static void main (String args[]) • { // main is the function which is called to run a prgm • // public access specifier • // static no instance is required • // String args Parameters • System.out.println("Java has three types of Comments"); • // ; is used as terminator for every statement • } • }
  • 10. • // Prgm to compare print and println • public class Out • { • public static void main(String args[]) • { System.out.println("First Line"); // Next output on new line • System.out.print("Second Line"); // Next o/p on same line • System.out.println("Third Line"); • } • }
  • 11. public class Conc { public static void main(String args[]) { System.out.println("Hi" + " Hello" + " How r u"); // + results in concatenation of strings } }