Developed by Y. Daniel Liang using Java Servlets (Current time is Sat Nov 21 19:13:20 EST 2009)

The questions are to accompany Introduction to Java Programming, 4E by Y. Daniel Liang. Please report errors to y.daniel.liang@gmail.com.

Introduction to Java Programming, 4E has been superseded by Introduction to Java Programming, 5E.

Chapter 1: Introduction to Java

1   Java is an object-oriented programming language.

True     False


2   Java was originally developed by a team led by James Gosling at Sun Microsystems.

True     False


3   Java source code can be executed on a Java Virtual Machine.

True     False


4   A Java interpreter is a program that translates Java source code into Java bytecode.

True     False


5   A Java application can be executed from a Web browser.

True     False


6   A Java application must have a main method.

True     False


7   A Java applet can be executed from a Web browser.

True     False


8   The public classname must be the same as the filename that contains the class.

True     False


9   A file may contain several classes.

True     False


10   Each class in the file is compiled into a separate bytecode file.

True     False


11   A block starts with an open brace ({) and ends with a closing brace (}).

True     False


12   The compiler generates bytecode even if the program has syntax errors.

True     False


13   You have to first compile the program, then run it.

True     False


14   System.exit(0) is used to terminate the program that uses JOptionPane.showMessageDialog method, because the program is still running even though all the windows are closed.

True     False