Page 65 - iPlus_Ver_2.0_class_8
P. 65
After entering the value of the arguments, click
on the OK button. The output will appear in the
terminal window as shown:
Output
To Sum Up
A computer program can be defined as a collection of instructions to perform a specific
task.
The process of writing a program is called program coding or programming.
There are mainly two types of programming languages: procedural and object-oriented.
Java is an object-oriented and high-level programming language.
Java follows the Write Once Run Anywhere (WORA) principle.
A class can be defined as a user-defined blueprint or prototype that is used to create
objects.
BlueJ is an IDE designed for beginners.
An identifier is the name given to an object in a Java program.
Keywords are the reserved words that cannot be used as identifier names as they carry
a special meaning for the Java compiler.
A data type is used to define the size and type of value that a variable can store.
A literal denotes a constant value.
Variables are the memory locations used to store values.
A comment is a statement in a Java program that is not executed by the Java compiler.
An operator is a symbol that tells the compiler to perform specific mathematical or
logical calculations.
Exercise
Section A (Objective)
A. Tick (✓) the correct option.
1. Which of the following symbols are used to write comments in Java?
a. // b. /** and */
c. /* and */ d. All of these
63
Program Coding

