Lab Exp 1 Compiling and Running Java Program 1
Lab Exp 1 Compiling and Running Java Program 1
CCS0023L
(Object Oriented Programming)
EXERCISE
1
Compiling and Running Java Program
Section:
Professor:
I. PROGRAM OUTCOME/S (PO) ADRESSED BY THE LABORATORY EXERCISE
b. Analyze a complex problem and identify and define the computing requirements
appropriate to its solution.
A Java source file can include package, import and class declarations in the same order
• The main() method is the start of execution of a Java application
• Each Java statement is terminated by a semicolon “;”
• System.out.println() outputs a string on the screen.
V. EXPERIMENTAL PROCEDURE:
1. Like any other programming language, you use the java programming language to create
applications.
Using Notepad or Notepad++ as text editor and the command line as output window,
create a class named: [YourName]. The program should output on the screen: Welcome to
Java Programming [YourName]!!!
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
2. How does the Java Technology platform improve on other language platforms?
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Note: The following rubrics/metrics will be used to grade students’ output in the lab
Exercise 1.