Lab - Exp - 1 (Compiling and Running Java Program)
Lab - Exp - 1 (Compiling and Running Java Program)
CCS0023L
(Object Oriented Programming)
EXERCISE
1
Compiling and Running Java Program
Section:
TX21
Doc Janice Abellana
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. Write a resume using System.out.println( ).
System.out.println() is a code in java where you will be able to print what’s inside of the
parenthesis. If you will be printing words, or what we call string, we must enclose it with
quotation marks for it to be read by the program.
2. How does the Java Technology platform improve on other language platforms?