SlideShare a Scribd company logo
Introduction to
Java Programming
T.LOGESWARI
What is Java
• Java is a programming language and a platform.
• Java is a high level, robust, secured and object-
oriented programming language.
• Platform: Any hardware or software
environment in which a program runs, is known
as a platform. Since Java has its own runtime
environment (JRE) and API, it is called platform.
•
2
Where it is used?
• According to Sun, 3 billion devices run java. There are
many devices where java is currently used. Some of
them are as follows:
• Desktop Applications such as acrobat reader, media
player, antivirus etc.
• Web Applications such as irctc.co.in, javatpoint.com
etc.
• Enterprise Applications such as banking applications.
• Mobile
• Embedded System
• Smart Card
• Robotics
• Games etc.
3
Java Applications
• We can develop four types of Java programs:
– Stand-alone applications
– Web applications (applets)
– Enterprise Application
– Mobile Application
Types of Java Applications
1) Standalone Application
• It is also known as desktop application or
window-based application.
• An application that we need to install on every
machine such as media player, antivirus etc.
• AWT and Swing are used in java for creating
standalone applications.
2) Web Application
• An application that runs on the server side and
creates dynamic page, is called web application.
• Currently, servlet, jsp, struts, jsf etc. technologies
are used for creating web applications in java.
5
3) Enterprise Application
• An application that is distributed in nature, such
as banking applications etc.
• It has the advantage of high level security, load
balancing and clustering.
• In java, EJB is used for creating enterprise
applications.
4) Mobile Application
• An application that is created for mobile devices.
• Currently Android and Java ME are used for
creating mobile applications.
6
Applets v/s Applications
• Different ways to run a Java executable are
Application- A stand-alone program that can be
invoked from command line . A program that has
a “mainmain” method
Applet- A program embedded in a web page , to
be run when the page is browsed . A program
that contains no “main” method
• Application –Executed by the Java interpreter.
• Applet- Java enabled web browser.
Java is Compiled and Interpreted
Text Editor Compiler Interpreter
Programmer
Source Code
.java file
Byte Code
.class file
Hardware and
Operating System
Notepad,
emacs,vi
javac java
appletviewer
netscape
Compiled Languages
Text Editor Compiler linker
Programmer
Source Code
.c file
Object
Code
.o file
Notepad,
emacs,vi
gcc
Executable
Code
a.out file
Total Platform Independence
JAVA COMPILERJAVA COMPILER
JAVA BYTE CODEJAVA BYTE CODE
JAVA INTERPRETERJAVA INTERPRETER
Windows 95 Macintosh Solaris Windows NT
(translator)
(same for all platforms)
(one for each different system)
Architecture Neutral & Portable
• Java Compiler - Java source code (file with
extension .java) to bytecode (file with
extension .class)
• Bytecode - an intermediate form, closer to
machine representation
• A interpreter (virtual machine) on any target
platform interprets the bytecode.
Getting Started with Java
Programming
• A Simple Java Application
• Compiling Programs
• Executing Applications
12
A Simple Application
Example 1.1
//This application program prints Welcome
//to Java!
package chapter1;
public class Welcome {
public static void main(String[] args) {
System.out.println("Welcome to Java!");
}
}
13
RunRunSourceSource
NOTE: To run the program,
install slide files on hard
disk.
Creating and Compiling Programs
• On command line
– javac file.java
14
Source Code
Create/Modify Source Code
Compile Source Code
i.e. javac Welcome.java
Bytecode
Run Byteode
i.e. java Welcome
Result
If compilation errors
If runtime errors or incorrect result
Executing Applications
• On command line
– java classname
15
Java
Interpreter
on Windows
Java
Interpreter
on Sun Solaris
Java
Interpreter
on Linux
Bytecode
...
Example
javac Welcome.java
java Welcome
output:...
16
Anatomy of a Java Program
• Comments
• Package
• Reserved words
• Modifiers
• Statements
• Blocks
• Classes
• Methods
• The main method
17
Comments
•In Java, comments are preceded by two slashes (//) in a line, or
enclosed between /* and */ in one or multiple lines.
•When the compiler sees //, it ignores all text after // in the same line.
• When it sees /*, it scans for the next */ and ignores any text
between /* and */.
18
Package
•The second line in the program (package chapter1;) specifies a
package name, chapter1, for the class Welcome.
• Forte compiles the source code in Welcome.java, generates
Welcome.class, and stores Welcome.class in the chapter1 folder.
19
Reserved Words
•Reserved words or keywords are words that have a specific meaning to
the compiler and cannot be used for other purposes in the program.
• For example, when the compiler sees the word class, it understands
that the word after class is the name for the class.
•Other reserved words in Example 1.1 are public, static, and void.
20
Modifiers
•Java uses certain reserved words called modifiers that specify the
properties of the data, methods, and classes and how they can be used.
• Examples of modifiers are public and static. Other modifiers are
private, final, abstract, and protected.
•A public datum, method, or class can be accessed by other programs.
• A private datum or method cannot be accessed by other programs.
21
Statements
•A statement represents an action or a sequence of actions.
•The statement System.out.println("Welcome to Java!") in the program
in Example 1.1 is a statement to display the greeting "Welcome to
Java!" Every statement in Java ends with a semicolon (;).
22
Blocks
23
•A pair of braces in a program forms a block that groups components of
a program.
public class Test {
public static void main(String[] args) {
System.out.println("Welcome to Java!");
}
}
Class block
Method block
Classes
•The class is the essential Java construct.
•A class is a template or blueprint for objects.
• To program in Java, you must understand classes and be able to write
and use them.
•For now, though, understand that a program is defined by using one or
more classes.
24
Methods
What is System.out.println?
•It is a method: a collection of statements that performs a sequence of
operations to display a message on the console.
• It can be used even without fully understanding the details of how it works.
•It is used by invoking a statement with a string argument.
•The string argument is enclosed within parentheses. In this case, the
argument is "Welcome to Java!" You can call the same println method with a
different argument to print a different message.
25
main Method
•The main method provides the control of program flow. The Java interpreter
executes the application by invoking the main method.
•The main method looks like this:
public static void main(String[] args) {
// Statements;
}
26
Program Processing
• Compilation
# javac hello.java
results in HelloInternet.class
• Execution
# java HelloInternet
Hello Internet
#
Summary
• class keyword is used to declare a class in java.
• public keyword is an access modifier which
represents visibility, it means it is visible to all.
• static is a keyword, if we declare any method as
static, it is known as static method.
– The core advantage of static method is that there is
no need to create object to invoke the static method.
– The main method is executed by the JVM, so it
doesn't require to create object to invoke the main
method. So it saves memory.
28
• void is the return type of the method, it
means it doesn't return any value.
• main represents startup of the program.
• String[] args is used for command line
argument.
• System.out.println() is used print statement.
29
• What happens at compile time?
• At compile time, java file is compiled by Java
Compiler (It does not interact with OS) and
converts the java code into bytecode.
30
• What happens at runtime?
• At runtime, following steps are performed:
31
Classloader: is the subsystem of JVM that
is used to load class files.
Bytecode  Verifier: checks the code
fragments for illegal code that can violate
access right to objects.
Interpreter: read bytecode stream then
execute the instructions.

More Related Content

What's hot (19)

PDF
Learn Java Part 1
Gurpreet singh
 
PPT
Java Presentation
pm2214
 
PPT
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
PPTX
core java
Roushan Sinha
 
PDF
Java introduction
Kuppusamy P
 
PPT
1 Introduction To Java Technology
dM Technologies
 
PPTX
Features of java - javatportal
JavaTportal
 
PDF
Java basics notes
poonguzhali1826
 
PPT
Java essential notes
Habitamu Asimare
 
PPTX
Chapter 1
siragezeynu
 
PPTX
Java architecture
Rakesh
 
PPT
Java features
myrajendra
 
PPSX
Java & advanced java
BASAVARAJ HUNSHAL
 
PPTX
Java byte code presentation
Mahnoor Hashmi
 
PPTX
Java programming course for beginners
Eduonix Learning Solutions
 
PDF
JAVA Program Examples
Prof Chethan Raj C
 
PDF
Core Java Tutorial
Java2Blog
 
PDF
Java notes
Manish Swarnkar
 
Learn Java Part 1
Gurpreet singh
 
Java Presentation
pm2214
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
core java
Roushan Sinha
 
Java introduction
Kuppusamy P
 
1 Introduction To Java Technology
dM Technologies
 
Features of java - javatportal
JavaTportal
 
Java basics notes
poonguzhali1826
 
Java essential notes
Habitamu Asimare
 
Chapter 1
siragezeynu
 
Java architecture
Rakesh
 
Java features
myrajendra
 
Java & advanced java
BASAVARAJ HUNSHAL
 
Java byte code presentation
Mahnoor Hashmi
 
Java programming course for beginners
Eduonix Learning Solutions
 
JAVA Program Examples
Prof Chethan Raj C
 
Core Java Tutorial
Java2Blog
 
Java notes
Manish Swarnkar
 

Similar to Java introduction (20)

PPTX
1.Intro--Why Java.pptx
YounasKhan542109
 
PPT
Java Standard edition(Java ) programming Basics for beginner's
momin6
 
PPT
Chapter 1 java
ahmed abugharsa
 
PPT
Java-Unit-I.ppt
RameswarGprec
 
PPT
01slide
cdclabs_123
 
PPT
01slide
Usha Sri
 
PPT
Basics of java 1
Vijay Kankane
 
PPTX
Java fundamentals
Om Ganesh
 
PPT
j-chap1-Basics.ppt
SmitaBorkar9
 
PPT
Core java-introduction
Ramlal Pawar
 
PDF
java notes.pdf
JitendraYadav351971
 
PPTX
Mpl 1
AHHAAH
 
PPTX
What is Java, JDK, JVM, Introduction to Java.pptx
kumarsuneel3997
 
PPTX
Introduction to java
Lovely Professional University
 
PPTX
Introduction to java
Lovely Professional University
 
PPT
01slide
Horesh Kumar
 
PPTX
01. Introduction to programming with java
Intro C# Book
 
PDF
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
PPT
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
1.Intro--Why Java.pptx
YounasKhan542109
 
Java Standard edition(Java ) programming Basics for beginner's
momin6
 
Chapter 1 java
ahmed abugharsa
 
Java-Unit-I.ppt
RameswarGprec
 
01slide
cdclabs_123
 
01slide
Usha Sri
 
Basics of java 1
Vijay Kankane
 
Java fundamentals
Om Ganesh
 
j-chap1-Basics.ppt
SmitaBorkar9
 
Core java-introduction
Ramlal Pawar
 
java notes.pdf
JitendraYadav351971
 
Mpl 1
AHHAAH
 
What is Java, JDK, JVM, Introduction to Java.pptx
kumarsuneel3997
 
Introduction to java
Lovely Professional University
 
Introduction to java
Lovely Professional University
 
01slide
Horesh Kumar
 
01. Introduction to programming with java
Intro C# Book
 
Java programming material for beginners by Nithin, VVCE, Mysuru
Nithin Kumar,VVCE, Mysuru
 
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
Ad

More from logeswarisaravanan (16)

PPTX
Data Warehousing – Core Concepts and Components
logeswarisaravanan
 
PPTX
What is Noise in Data Mining? Noisy data are data with a large amount of addi...
logeswarisaravanan
 
PPTX
Infromation & Coding Theory -Linear Feedback Shift.pptx
logeswarisaravanan
 
PPTX
Information & Communication System --Syndrome.pptx
logeswarisaravanan
 
PPTX
1.2 Information & Coding :Information Theory.pptx
logeswarisaravanan
 
PPTX
1.1Information & Coding Theory:Communication System.pptx
logeswarisaravanan
 
PDF
unit II Mining Association Rule.pdf
logeswarisaravanan
 
PDF
Data Mining Appliction chapter 5.pdf
logeswarisaravanan
 
PPT
Chapter 2 Data Preprocessing part3.ppt
logeswarisaravanan
 
PPTX
Introduction-to-DBMS-and-Data-Mining.pptx
logeswarisaravanan
 
PPTX
Introduction-to-Text-Classification.pptx
logeswarisaravanan
 
PPTX
Fundamentals of Data Science: Introduction.pptx
logeswarisaravanan
 
PPTX
UNIT 4 E Introduction to linear model.pptx
logeswarisaravanan
 
PPTX
A Introduction-to-Forms-of-Learning.pptx
logeswarisaravanan
 
PPTX
AI: Introduction-to-Goal-Based-Agents.pptx
logeswarisaravanan
 
PPTX
Artificial Intelligence: Intelligent Agents
logeswarisaravanan
 
Data Warehousing – Core Concepts and Components
logeswarisaravanan
 
What is Noise in Data Mining? Noisy data are data with a large amount of addi...
logeswarisaravanan
 
Infromation & Coding Theory -Linear Feedback Shift.pptx
logeswarisaravanan
 
Information & Communication System --Syndrome.pptx
logeswarisaravanan
 
1.2 Information & Coding :Information Theory.pptx
logeswarisaravanan
 
1.1Information & Coding Theory:Communication System.pptx
logeswarisaravanan
 
unit II Mining Association Rule.pdf
logeswarisaravanan
 
Data Mining Appliction chapter 5.pdf
logeswarisaravanan
 
Chapter 2 Data Preprocessing part3.ppt
logeswarisaravanan
 
Introduction-to-DBMS-and-Data-Mining.pptx
logeswarisaravanan
 
Introduction-to-Text-Classification.pptx
logeswarisaravanan
 
Fundamentals of Data Science: Introduction.pptx
logeswarisaravanan
 
UNIT 4 E Introduction to linear model.pptx
logeswarisaravanan
 
A Introduction-to-Forms-of-Learning.pptx
logeswarisaravanan
 
AI: Introduction-to-Goal-Based-Agents.pptx
logeswarisaravanan
 
Artificial Intelligence: Intelligent Agents
logeswarisaravanan
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 

Java introduction

  • 2. What is Java • Java is a programming language and a platform. • Java is a high level, robust, secured and object- oriented programming language. • Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has its own runtime environment (JRE) and API, it is called platform. • 2
  • 3. Where it is used? • According to Sun, 3 billion devices run java. There are many devices where java is currently used. Some of them are as follows: • Desktop Applications such as acrobat reader, media player, antivirus etc. • Web Applications such as irctc.co.in, javatpoint.com etc. • Enterprise Applications such as banking applications. • Mobile • Embedded System • Smart Card • Robotics • Games etc. 3
  • 4. Java Applications • We can develop four types of Java programs: – Stand-alone applications – Web applications (applets) – Enterprise Application – Mobile Application
  • 5. Types of Java Applications 1) Standalone Application • It is also known as desktop application or window-based application. • An application that we need to install on every machine such as media player, antivirus etc. • AWT and Swing are used in java for creating standalone applications. 2) Web Application • An application that runs on the server side and creates dynamic page, is called web application. • Currently, servlet, jsp, struts, jsf etc. technologies are used for creating web applications in java. 5
  • 6. 3) Enterprise Application • An application that is distributed in nature, such as banking applications etc. • It has the advantage of high level security, load balancing and clustering. • In java, EJB is used for creating enterprise applications. 4) Mobile Application • An application that is created for mobile devices. • Currently Android and Java ME are used for creating mobile applications. 6
  • 7. Applets v/s Applications • Different ways to run a Java executable are Application- A stand-alone program that can be invoked from command line . A program that has a “mainmain” method Applet- A program embedded in a web page , to be run when the page is browsed . A program that contains no “main” method • Application –Executed by the Java interpreter. • Applet- Java enabled web browser.
  • 8. Java is Compiled and Interpreted Text Editor Compiler Interpreter Programmer Source Code .java file Byte Code .class file Hardware and Operating System Notepad, emacs,vi javac java appletviewer netscape
  • 9. Compiled Languages Text Editor Compiler linker Programmer Source Code .c file Object Code .o file Notepad, emacs,vi gcc Executable Code a.out file
  • 10. Total Platform Independence JAVA COMPILERJAVA COMPILER JAVA BYTE CODEJAVA BYTE CODE JAVA INTERPRETERJAVA INTERPRETER Windows 95 Macintosh Solaris Windows NT (translator) (same for all platforms) (one for each different system)
  • 11. Architecture Neutral & Portable • Java Compiler - Java source code (file with extension .java) to bytecode (file with extension .class) • Bytecode - an intermediate form, closer to machine representation • A interpreter (virtual machine) on any target platform interprets the bytecode.
  • 12. Getting Started with Java Programming • A Simple Java Application • Compiling Programs • Executing Applications 12
  • 13. A Simple Application Example 1.1 //This application program prints Welcome //to Java! package chapter1; public class Welcome { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } 13 RunRunSourceSource NOTE: To run the program, install slide files on hard disk.
  • 14. Creating and Compiling Programs • On command line – javac file.java 14 Source Code Create/Modify Source Code Compile Source Code i.e. javac Welcome.java Bytecode Run Byteode i.e. java Welcome Result If compilation errors If runtime errors or incorrect result
  • 15. Executing Applications • On command line – java classname 15 Java Interpreter on Windows Java Interpreter on Sun Solaris Java Interpreter on Linux Bytecode ...
  • 17. Anatomy of a Java Program • Comments • Package • Reserved words • Modifiers • Statements • Blocks • Classes • Methods • The main method 17
  • 18. Comments •In Java, comments are preceded by two slashes (//) in a line, or enclosed between /* and */ in one or multiple lines. •When the compiler sees //, it ignores all text after // in the same line. • When it sees /*, it scans for the next */ and ignores any text between /* and */. 18
  • 19. Package •The second line in the program (package chapter1;) specifies a package name, chapter1, for the class Welcome. • Forte compiles the source code in Welcome.java, generates Welcome.class, and stores Welcome.class in the chapter1 folder. 19
  • 20. Reserved Words •Reserved words or keywords are words that have a specific meaning to the compiler and cannot be used for other purposes in the program. • For example, when the compiler sees the word class, it understands that the word after class is the name for the class. •Other reserved words in Example 1.1 are public, static, and void. 20
  • 21. Modifiers •Java uses certain reserved words called modifiers that specify the properties of the data, methods, and classes and how they can be used. • Examples of modifiers are public and static. Other modifiers are private, final, abstract, and protected. •A public datum, method, or class can be accessed by other programs. • A private datum or method cannot be accessed by other programs. 21
  • 22. Statements •A statement represents an action or a sequence of actions. •The statement System.out.println("Welcome to Java!") in the program in Example 1.1 is a statement to display the greeting "Welcome to Java!" Every statement in Java ends with a semicolon (;). 22
  • 23. Blocks 23 •A pair of braces in a program forms a block that groups components of a program. public class Test { public static void main(String[] args) { System.out.println("Welcome to Java!"); } } Class block Method block
  • 24. Classes •The class is the essential Java construct. •A class is a template or blueprint for objects. • To program in Java, you must understand classes and be able to write and use them. •For now, though, understand that a program is defined by using one or more classes. 24
  • 25. Methods What is System.out.println? •It is a method: a collection of statements that performs a sequence of operations to display a message on the console. • It can be used even without fully understanding the details of how it works. •It is used by invoking a statement with a string argument. •The string argument is enclosed within parentheses. In this case, the argument is "Welcome to Java!" You can call the same println method with a different argument to print a different message. 25
  • 26. main Method •The main method provides the control of program flow. The Java interpreter executes the application by invoking the main method. •The main method looks like this: public static void main(String[] args) { // Statements; } 26
  • 27. Program Processing • Compilation # javac hello.java results in HelloInternet.class • Execution # java HelloInternet Hello Internet #
  • 28. Summary • class keyword is used to declare a class in java. • public keyword is an access modifier which represents visibility, it means it is visible to all. • static is a keyword, if we declare any method as static, it is known as static method. – The core advantage of static method is that there is no need to create object to invoke the static method. – The main method is executed by the JVM, so it doesn't require to create object to invoke the main method. So it saves memory. 28
  • 29. • void is the return type of the method, it means it doesn't return any value. • main represents startup of the program. • String[] args is used for command line argument. • System.out.println() is used print statement. 29
  • 30. • What happens at compile time? • At compile time, java file is compiled by Java Compiler (It does not interact with OS) and converts the java code into bytecode. 30
  • 31. • What happens at runtime? • At runtime, following steps are performed: 31 Classloader: is the subsystem of JVM that is used to load class files. Bytecode  Verifier: checks the code fragments for illegal code that can violate access right to objects. Interpreter: read bytecode stream then execute the instructions.

Editor's Notes

  • #2: First Class: Introduction, Prerequisites, Advices, Syllabus Lab 1: Create a Java Project, Compile, and Run. Show syntax errors Print program Capture screen shots, and save it in Word, and print it. Homework One: Check in the class randomly.