SlideShare a Scribd company logo
1 of 12
Made
Simple
Introduction In 1992, Java was just a Concept
(an idea) by James Gosling and his
team.
• Actually started developing in 1995.
• Firstly it was named ‘oak’ but later
named ‘Java’.
• Developed at Sun microsystem.
• First Java SDK (Software Development
Kit) i.e. version 1.0 was developed in
January 1996.
Division of Java Technology
J2SE
J2EE
J2ME
JAVA to Standard
Edition
JAVA to Enterprise
Edition
JAVA to
Micro/Mobile
Edition
Standalone, Web
Applications
Web Applications
Mobile
Applications
What is a Compiler?
It is a software that checks all errors of
the source code and if source code
contains any error then it will give error
message or convert source code into
byte code.
How to Compile & Execute Simple Java
Application…
________________
________________
________________
________________
________________
________________
________________
________________
________________
________________
________________
________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
_________________
App.java
(source file)
App.class
(class file)
Source code
Byte code
Output/Machine
code
Compilation
javac
App.java
Execution
java
App
Output
SDK (Software
Development Kit)
JDK (Java
Development Kit)
[Compiler]
JRE (Java Runtime
Environment)
[JVM (java virtual machine)]
HOW TO MAKE SIMPLE JAVA
APPLICATION..
STEP-1] CREATE CLASS
Syntax: class class-name {
……………….
………….
………….
}
e.g. class Hello {
…………
………..
………..
}
First Letter of name
should be Capital
Class start
Class end
STEP-2] CREATE MAIN METHOD
Syntax: specifier return type name (parameter) {
}
Accessible by all makes class executable by class name by JVM through
main
e.g.: public static void main (String args []) {
does not return anthing JVM accesses through main
to JVM
}
Main: Main is method that provides entry of JVM into application.
Void: Void is the return type of main method. It means main method
does not return any value to JVM.
Static: Static is a specifier. Because of that, JVM can access main
method directly using class name.
Public: It is an access-specifier. Because of that, JVM can access main
method of anywhere in the OS.
String args []: It is an array of string type taken as parameter in main
method.
STEP-3] WRITE DETAILS AT OUTPUT SCREEN
Syntax:
System.out.println(“___________”);
Class object method
FINAL SIMPLE JAVA PROGRAM is…
Class Hello {
public static void main (String args []) {
System.out.println(“Hello”);
}
}
KEYWORDS:
Keywords are the predefined words or reserved
words developed by language providers are used for a
special purpose.
Their task is already fixed.
Always write keywords in small letters.
Never use keywords for any other tasks like class-
name, method-name, variable –name, etc.
Java language contains total 50 keywords.

More Related Content

What's hot (20)

Features of JAVA Programming Language.
Features of JAVA Programming Language.Features of JAVA Programming Language.
Features of JAVA Programming Language.
 
Oop lecture2
Oop lecture2Oop lecture2
Oop lecture2
 
Java architecture
Java architectureJava architecture
Java architecture
 
Xtext Webinar
Xtext WebinarXtext Webinar
Xtext Webinar
 
Java seminar
Java seminarJava seminar
Java seminar
 
01slide
01slide01slide
01slide
 
01slide
01slide01slide
01slide
 
Eclipse Luna - What's New!
Eclipse Luna - What's New!Eclipse Luna - What's New!
Eclipse Luna - What's New!
 
Econ11 weaving
Econ11 weavingEcon11 weaving
Econ11 weaving
 
java token
java tokenjava token
java token
 
History of java'
History of java'History of java'
History of java'
 
computer science JAVA ppt
computer science JAVA pptcomputer science JAVA ppt
computer science JAVA ppt
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Getting Program Input
Getting Program Input Getting Program Input
Getting Program Input
 
Core Java Tutorial
Core Java TutorialCore Java Tutorial
Core Java Tutorial
 
Unit of competency
Unit of competencyUnit of competency
Unit of competency
 
Java introduction
Java introductionJava introduction
Java introduction
 
Groovy features
Groovy featuresGroovy features
Groovy features
 
core java
core javacore java
core java
 
Java training in delhi
Java training in delhiJava training in delhi
Java training in delhi
 

Similar to Java Made Simple in 40 Characters (20)

Chapter 2.1
Chapter 2.1Chapter 2.1
Chapter 2.1
 
Top 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdfTop 10 Important Core Java Interview questions and answers.pdf
Top 10 Important Core Java Interview questions and answers.pdf
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...Introduction to Java Programming, Basic Structure, variables Data type, input...
Introduction to Java Programming, Basic Structure, variables Data type, input...
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Introduction java programming
Introduction java programmingIntroduction java programming
Introduction java programming
 
java basic for begginers
java basic for begginersjava basic for begginers
java basic for begginers
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
Corejava
Corejava Corejava
Corejava
 
Introduction
IntroductionIntroduction
Introduction
 
Java introduction
Java introductionJava introduction
Java introduction
 
1.introduction to java
1.introduction to java1.introduction to java
1.introduction to java
 
Introduction to java technology
Introduction to java technologyIntroduction to java technology
Introduction to java technology
 
Java introduction
Java introductionJava introduction
Java introduction
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
Java
JavaJava
Java
 
Core java-introduction
Core java-introductionCore java-introduction
Core java-introduction
 
Java for Mainframers
Java for MainframersJava for Mainframers
Java for Mainframers
 
OOPS JAVA.pdf
OOPS JAVA.pdfOOPS JAVA.pdf
OOPS JAVA.pdf
 
Professional-core-java-training
Professional-core-java-trainingProfessional-core-java-training
Professional-core-java-training
 
lecture 6
 lecture 6 lecture 6
lecture 6
 

Recently uploaded

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 

Recently uploaded (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 

Java Made Simple in 40 Characters

  • 2. Introduction In 1992, Java was just a Concept (an idea) by James Gosling and his team. • Actually started developing in 1995. • Firstly it was named ‘oak’ but later named ‘Java’. • Developed at Sun microsystem. • First Java SDK (Software Development Kit) i.e. version 1.0 was developed in January 1996.
  • 3. Division of Java Technology J2SE J2EE J2ME JAVA to Standard Edition JAVA to Enterprise Edition JAVA to Micro/Mobile Edition Standalone, Web Applications Web Applications Mobile Applications
  • 4. What is a Compiler? It is a software that checks all errors of the source code and if source code contains any error then it will give error message or convert source code into byte code.
  • 5. How to Compile & Execute Simple Java Application… ________________ ________________ ________________ ________________ ________________ ________________ ________________ ________________ ________________ ________________ ________________ ________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ _________________ App.java (source file) App.class (class file) Source code Byte code Output/Machine code Compilation javac App.java Execution java App Output
  • 6. SDK (Software Development Kit) JDK (Java Development Kit) [Compiler] JRE (Java Runtime Environment) [JVM (java virtual machine)]
  • 7. HOW TO MAKE SIMPLE JAVA APPLICATION.. STEP-1] CREATE CLASS Syntax: class class-name { ………………. …………. …………. } e.g. class Hello { ………… ……….. ……….. } First Letter of name should be Capital Class start Class end
  • 8. STEP-2] CREATE MAIN METHOD Syntax: specifier return type name (parameter) { } Accessible by all makes class executable by class name by JVM through main e.g.: public static void main (String args []) { does not return anthing JVM accesses through main to JVM }
  • 9. Main: Main is method that provides entry of JVM into application. Void: Void is the return type of main method. It means main method does not return any value to JVM. Static: Static is a specifier. Because of that, JVM can access main method directly using class name. Public: It is an access-specifier. Because of that, JVM can access main method of anywhere in the OS. String args []: It is an array of string type taken as parameter in main method.
  • 10. STEP-3] WRITE DETAILS AT OUTPUT SCREEN Syntax: System.out.println(“___________”); Class object method
  • 11. FINAL SIMPLE JAVA PROGRAM is… Class Hello { public static void main (String args []) { System.out.println(“Hello”); } }
  • 12. KEYWORDS: Keywords are the predefined words or reserved words developed by language providers are used for a special purpose. Their task is already fixed. Always write keywords in small letters. Never use keywords for any other tasks like class- name, method-name, variable –name, etc. Java language contains total 50 keywords.