SlideShare a Scribd company logo
1 of 17
Download to read offline
Computer Technology Institute (CTI)
Programming Fundamentals Using Java
Lecture 1
Jawid Ahmad Niazi
Technical Institute of Ghazni
Prepared By: Jawid Ahmad Niazi 1
• Java technology is both a programming language and a platform
• The Java programming language is a high-level language that
can be characterized by all of the following
– Simple
– Architecture neutral
– Object oriented
– Portable
Prepared By: Jawid Ahmad Niazi 2
• In the Java programming language, all source code is first written in
plain text files ending with the .java extension.
• Those source files are then compiled into .class files by the Java
compiler (javac).
• A .class file does not contain code that is native to your processor;
it instead contains bytecodes-- the machine language of the Java
Virtual Machine.
Prepared By: Jawid Ahmad Niazi 3
Prepared By: Jawid Ahmad Niazi 4
• Name the person(s) who developed Java?
• Answer: Java was developed by James Gosling &
Patrick Naughton at Sun Microsystems, Inc. in 1991.
• What was the initial name of Java?
• Answer: Java language was initially called “Oak” and
was renamed “Java” in 1995.
• Important features of JAVA.
• Java is a platform - independent language It is highly
reliable
• It is a distributed language
• It is an object oriented language
• What kind of files contain Java source code?
• Answer: The Java source code is saved in files with names the end
with “.java”.
Prepared By: Jawid Ahmad Niazi 5
Prepared By: Jawid Ahmad Niazi 6
• What is source code?
• Answer: Source code is the plain text that makes up the part or
all of a computer program.
• What is bytecode?
• Answer: Bytecode is a low-level computer language translation
of Java source code program.
Prepared By: Jawid Ahmad Niazi 7
• The Java launcher tool (java) then runs your
application with an instance of the Java Virtual
Machine.
Prepared By: Jawid Ahmad Niazi 8
Platform
Independen
8
ce
Java
Program
Java
Compiler
(javac)
Java
Byte Code
Can be
executed
MS-DOS
Windows (X)
UNIX
Any other (O.S.)
Source Code JavaVirtual
Machine
Prepared By: Jawid Ahmad Niazi 9
• Because the Java Virtual Machine is available on
many different operating systems, the same .class
files are capable of running on
– Microsoft Windows,
– the Solaris TM Operating System (SolarisOS),
– Linux, or
– MacOS.
Prepared By: Jawid Ahmad Niazi 10
What is a Java virtual machine?
Answer: A Java virtual machine(JVM) is a software
system that translates and executes Java bytecode.
Name two types of Java programs?
Answer: We can develop two types of Java
programs
1. Stand-alone application
2. Web applets
Prepared By: Jawid Ahmad Niazi 11
• Your first application, HelloWorldApp, will simply
display the greeting "Hello world!". To create this
program, you will:
 Create a source file. A source file contains text,
written in the Java programming language, that you and
other programmers can understand. You can use any
text editor to create and edit source files.
 Compile the source file into a .class file. The Java
compiler, javac, takes your source file and translates its
text into instructions that the Java Virtual Machine can
understand. The instructions contained within this file
are known as bytecodes.
 Run the program. The Java launcher (java) uses the
Java Virtual Machine to run your application.
• First, start your editor. You can launch the NotePad editor from
the Start menu by selecting Programs > Accessories >
NotePad. In a new document, type in the following code:
• /**
• * The HelloWorldApp class implements an application that
• * simply displays "Hello World!" to the standard output.
• */
• class HelloWorldApp {
• public static void main(String[] args) {
• //Display "Hello World!"
• System.out.println("Hello World!");
• }
• }
• You can save the file as HelloWorldApp.java
Prepared By: Jawid Ahmad Niazi
Prepared By: Jawid Ahmad Niazi
• You can save the file as HelloWorldApp.java
13
Prepared By: Jawid Ahmad Niazi 14
• Bring up a shell, or "command," window
• You can do this from the Start menu by choosing MS-DOS
Prompt (Windows 7/8/10) or Command Prompt (Windows
NT/XP), or by choosing Run... and then entering cmd
Prepared By: Jawid Ahmad Niazi 15
• To Compile the Program, execute the compiler, javac, specifying
the name of the source file on the command line
C:> javac HelloWorldApp.java
• The java compiler creates a file called HelloWorldApp.class
• To run the program, we must use the Java Interpreter called
Java by,
java HelloWorldApp
• The output is displayed,
Hello World!
Lab Assignment
• 1. Write a program to display the following output
• My name is
I am years old
• I study in Technical Institute at Ghazni
Prepared By: Jawid Ahmad Niazi 16
Any Question……
Prepared By: Jawid Ahmad Niazi 17

More Related Content

What's hot (19)

JAVA ENVIRONMENT
JAVA  ENVIRONMENTJAVA  ENVIRONMENT
JAVA ENVIRONMENT
 
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVMJava Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
 
Presentation on java (8)
Presentation on java (8)Presentation on java (8)
Presentation on java (8)
 
Learn Java Part 1
Learn Java Part 1Learn Java Part 1
Learn Java Part 1
 
Java byte code presentation
Java byte code presentationJava byte code presentation
Java byte code presentation
 
JVM
JVMJVM
JVM
 
Java Class 2
Java Class 2Java Class 2
Java Class 2
 
Java Class1
Java Class1Java Class1
Java Class1
 
Chapter 1 java
Chapter 1 java Chapter 1 java
Chapter 1 java
 
History of Java 1/2
History of Java 1/2History of Java 1/2
History of Java 1/2
 
JDK,JRE,JVM
JDK,JRE,JVMJDK,JRE,JVM
JDK,JRE,JVM
 
QSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and JitQSpiders - Jdk Jvm Jre and Jit
QSpiders - Jdk Jvm Jre and Jit
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Java 1
Java 1Java 1
Java 1
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Introduction to Java Programming
Introduction to Java Programming Introduction to Java Programming
Introduction to Java Programming
 
Programming in java ppt
Programming in java  pptProgramming in java  ppt
Programming in java ppt
 
Introduction to Core Java Programming
Introduction to Core Java ProgrammingIntroduction to Core Java Programming
Introduction to Core Java Programming
 
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
 

Similar to Lecture java01

Intoduction to java
Intoduction to javaIntoduction to java
Intoduction to javajalinder123
 
Dr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDrRajeshreeKhande
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01Jay Palit
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
 
Introduction to java
Introduction to java Introduction to java
Introduction to java Java Lover
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operatorkamal kotecha
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unitgowher172236
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptRajeshSukte1
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptCDSukte
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaShravan Sanidhya
 
1 Introduction To Java Technology
1 Introduction To Java Technology 1 Introduction To Java Technology
1 Introduction To Java Technology dM Technologies
 

Similar to Lecture java01 (20)

JAVA First Day
JAVA First DayJAVA First Day
JAVA First Day
 
Intoduction to java
Intoduction to javaIntoduction to java
Intoduction to java
 
Dr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to javaDr. Rajeshree Khande :Intoduction to java
Dr. Rajeshree Khande :Intoduction to java
 
J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01J2ee strutswithhibernate-140121221332-phpapp01
J2ee strutswithhibernate-140121221332-phpapp01
 
Java introduction
Java introductionJava introduction
Java introduction
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Introduction to java
Introduction to java Introduction to java
Introduction to java
 
basic core java up to operator
basic core java up to operatorbasic core java up to operator
basic core java up to operator
 
1 java intro
1 java intro1 java intro
1 java intro
 
java intro.pptx
java intro.pptxjava intro.pptx
java intro.pptx
 
Java ppt1
Java ppt1Java ppt1
Java ppt1
 
Notes of java first unit
Notes of java first unitNotes of java first unit
Notes of java first unit
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
 
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.pptPPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
 
Java1
Java1Java1
Java1
 
Java1
Java1Java1
Java1
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan SanidhyaTraining on Core java | PPT Presentation | Shravan Sanidhya
Training on Core java | PPT Presentation | Shravan Sanidhya
 
Introduction to java technology
Introduction to java technologyIntroduction to java technology
Introduction to java technology
 
1.Intro--Why Java.pptx
1.Intro--Why Java.pptx1.Intro--Why Java.pptx
1.Intro--Why Java.pptx
 
1 Introduction To Java Technology
1 Introduction To Java Technology 1 Introduction To Java Technology
1 Introduction To Java Technology
 

Recently uploaded

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 

Recently uploaded (20)

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 

Lecture java01

  • 1. Computer Technology Institute (CTI) Programming Fundamentals Using Java Lecture 1 Jawid Ahmad Niazi Technical Institute of Ghazni Prepared By: Jawid Ahmad Niazi 1
  • 2. • Java technology is both a programming language and a platform • The Java programming language is a high-level language that can be characterized by all of the following – Simple – Architecture neutral – Object oriented – Portable Prepared By: Jawid Ahmad Niazi 2
  • 3. • In the Java programming language, all source code is first written in plain text files ending with the .java extension. • Those source files are then compiled into .class files by the Java compiler (javac). • A .class file does not contain code that is native to your processor; it instead contains bytecodes-- the machine language of the Java Virtual Machine. Prepared By: Jawid Ahmad Niazi 3
  • 4. Prepared By: Jawid Ahmad Niazi 4 • Name the person(s) who developed Java? • Answer: Java was developed by James Gosling & Patrick Naughton at Sun Microsystems, Inc. in 1991. • What was the initial name of Java? • Answer: Java language was initially called “Oak” and was renamed “Java” in 1995.
  • 5. • Important features of JAVA. • Java is a platform - independent language It is highly reliable • It is a distributed language • It is an object oriented language • What kind of files contain Java source code? • Answer: The Java source code is saved in files with names the end with “.java”. Prepared By: Jawid Ahmad Niazi 5
  • 6. Prepared By: Jawid Ahmad Niazi 6 • What is source code? • Answer: Source code is the plain text that makes up the part or all of a computer program. • What is bytecode? • Answer: Bytecode is a low-level computer language translation of Java source code program.
  • 7. Prepared By: Jawid Ahmad Niazi 7 • The Java launcher tool (java) then runs your application with an instance of the Java Virtual Machine.
  • 8. Prepared By: Jawid Ahmad Niazi 8 Platform Independen 8 ce Java Program Java Compiler (javac) Java Byte Code Can be executed MS-DOS Windows (X) UNIX Any other (O.S.) Source Code JavaVirtual Machine
  • 9. Prepared By: Jawid Ahmad Niazi 9 • Because the Java Virtual Machine is available on many different operating systems, the same .class files are capable of running on – Microsoft Windows, – the Solaris TM Operating System (SolarisOS), – Linux, or – MacOS.
  • 10. Prepared By: Jawid Ahmad Niazi 10 What is a Java virtual machine? Answer: A Java virtual machine(JVM) is a software system that translates and executes Java bytecode. Name two types of Java programs? Answer: We can develop two types of Java programs 1. Stand-alone application 2. Web applets
  • 11. Prepared By: Jawid Ahmad Niazi 11 • Your first application, HelloWorldApp, will simply display the greeting "Hello world!". To create this program, you will:  Create a source file. A source file contains text, written in the Java programming language, that you and other programmers can understand. You can use any text editor to create and edit source files.  Compile the source file into a .class file. The Java compiler, javac, takes your source file and translates its text into instructions that the Java Virtual Machine can understand. The instructions contained within this file are known as bytecodes.  Run the program. The Java launcher (java) uses the Java Virtual Machine to run your application.
  • 12. • First, start your editor. You can launch the NotePad editor from the Start menu by selecting Programs > Accessories > NotePad. In a new document, type in the following code: • /** • * The HelloWorldApp class implements an application that • * simply displays "Hello World!" to the standard output. • */ • class HelloWorldApp { • public static void main(String[] args) { • //Display "Hello World!" • System.out.println("Hello World!"); • } • } • You can save the file as HelloWorldApp.java Prepared By: Jawid Ahmad Niazi
  • 13. Prepared By: Jawid Ahmad Niazi • You can save the file as HelloWorldApp.java 13
  • 14. Prepared By: Jawid Ahmad Niazi 14 • Bring up a shell, or "command," window • You can do this from the Start menu by choosing MS-DOS Prompt (Windows 7/8/10) or Command Prompt (Windows NT/XP), or by choosing Run... and then entering cmd
  • 15. Prepared By: Jawid Ahmad Niazi 15 • To Compile the Program, execute the compiler, javac, specifying the name of the source file on the command line C:> javac HelloWorldApp.java • The java compiler creates a file called HelloWorldApp.class • To run the program, we must use the Java Interpreter called Java by, java HelloWorldApp • The output is displayed, Hello World!
  • 16. Lab Assignment • 1. Write a program to display the following output • My name is I am years old • I study in Technical Institute at Ghazni Prepared By: Jawid Ahmad Niazi 16
  • 17. Any Question…… Prepared By: Jawid Ahmad Niazi 17