JAVA CHAPTER 1 QUESTIONS
AND ANSWERS
What is a program written in a high-level language called? - ANSWER A
source program.
What translates a source program into a machine language program called an
object program? - ANSWER A compiler.
Characteristics of Java are: - ANSWER Simple, object-oriented, distributed,
interpreted, robust, secure, architecture-neutral, portable, performance,
multithreaded, and dynamic.
__________ programming provides great flexibility, modularity clarity, and
reuseability through encapsulation, inheritance, and polymorphism. -
ANSWER Object-oriented
What allows you to write one program that can execute on any machine? -
ANSWER The Java Virtual Machine.
Give an example of a simple Java Program. - ANSWER //This program prints
Welcome to Java!
public class Welcome {
public static void main(String[] args) {
System.out.println("Welcome to Java!");
}
AND ANSWERS
What is a program written in a high-level language called? - ANSWER A
source program.
What translates a source program into a machine language program called an
object program? - ANSWER A compiler.
Characteristics of Java are: - ANSWER Simple, object-oriented, distributed,
interpreted, robust, secure, architecture-neutral, portable, performance,
multithreaded, and dynamic.
__________ programming provides great flexibility, modularity clarity, and
reuseability through encapsulation, inheritance, and polymorphism. -
ANSWER Object-oriented
What allows you to write one program that can execute on any machine? -
ANSWER The Java Virtual Machine.
Give an example of a simple Java Program. - ANSWER //This program prints
Welcome to Java!
public class Welcome {
public static void main(String[] args) {
System.out.println("Welcome to Java!");
}