Java Chapter 1 UPDATED ACTUAL Exam Questions and
CORRECT Answers
Java version: to develop applications for mobile devices, such as cell phones. - Java ME (Micro)
technical definition of the Java programming language's syntax and semantics. - Java language
specification
Instead of using the JDK, you can use a Java development tool (e.g., NetBeans, Eclipse, and
TextPad)—software that provides an - IDE (for developing Java programs quickly)
The program is executed from the _ - main method
Every Java program must have - at least one class
By convention, class names start with - an uppercase letter
setup a class called welcome - public class Welcome
The program is executed from the main method. A class may contain _. - more than one method
The main method is the entry point, where the program __. - begins execution.
A method is a construct that contains _ - statements
Every statement in Java ends with a, known as the _ - ;, statement terminator
, _ _ _ have a specific meaning to the compiler and cannot be used for other purposes in the
program. - reserved or keywords
"which are the reserved words in this program:
which are the reserved words in this program:
1 public class Welcome {
2 public static void main(String[] args) {
3 // Display message Welcome to Java! on the console
4 System.out.println("Welcome to Java!");
5}
6 } - public, class, static, void
what is this:
/* This application program displays Welcome to Java! */ - block / paragraph comment.
A pair of curly braces in a program forms ___. Each begins with an opening brace ({) and ends
with a closing brace (}). - a block (that groups the program's components)
Every class has a _ that groups the data and methods of the class. - class block
Every method has a _ that groups the statements in the method. - block (method block)
Java source programs are case _. It would be wrong, for example, to replace main in the program
with Main. - sensitive
Used with methods. - ()
CORRECT Answers
Java version: to develop applications for mobile devices, such as cell phones. - Java ME (Micro)
technical definition of the Java programming language's syntax and semantics. - Java language
specification
Instead of using the JDK, you can use a Java development tool (e.g., NetBeans, Eclipse, and
TextPad)—software that provides an - IDE (for developing Java programs quickly)
The program is executed from the _ - main method
Every Java program must have - at least one class
By convention, class names start with - an uppercase letter
setup a class called welcome - public class Welcome
The program is executed from the main method. A class may contain _. - more than one method
The main method is the entry point, where the program __. - begins execution.
A method is a construct that contains _ - statements
Every statement in Java ends with a, known as the _ - ;, statement terminator
, _ _ _ have a specific meaning to the compiler and cannot be used for other purposes in the
program. - reserved or keywords
"which are the reserved words in this program:
which are the reserved words in this program:
1 public class Welcome {
2 public static void main(String[] args) {
3 // Display message Welcome to Java! on the console
4 System.out.println("Welcome to Java!");
5}
6 } - public, class, static, void
what is this:
/* This application program displays Welcome to Java! */ - block / paragraph comment.
A pair of curly braces in a program forms ___. Each begins with an opening brace ({) and ends
with a closing brace (}). - a block (that groups the program's components)
Every class has a _ that groups the data and methods of the class. - class block
Every method has a _ that groups the statements in the method. - block (method block)
Java source programs are case _. It would be wrong, for example, to replace main in the program
with Main. - sensitive
Used with methods. - ()