Questions from Starting Out With Java


Q: Look at the following method header: public static void myMethod

Look at the following method header: public static void myMethod(int a, int b, int c) Now look at the following call to myMethod: myMethod(3, 2, 1); When this call executes, what value will be stored...

See Answer

Q: After the catch block has handled the exception, where does program

After the catch block has handled the exception, where does program execution resume?

See Answer

Q: How do you retrieve an error message from an exception?

How do you retrieve an error message from an exception?

See Answer

Q: What is the difference between a try block and a catch block

What is the difference between a try block and a catch block?

See Answer

Q: If multiple exceptions can be thrown by code in a try block

If multiple exceptions can be thrown by code in a try block, how does the JVM know which catch clause it should pass the control of the program to?

See Answer

Q: What is a user interface?

What is a user interface?

See Answer

Q: The JavaFX library has an abstract class that is the foundation of

The JavaFX library has an abstract class that is the foundation of a GUI application. What is the name of the class?

See Answer

Q: What is the purpose of the launch method of the Application class

What is the purpose of the launch method of the Application class?

See Answer

Q: What is the purpose of the Application class’s abstract start

What is the purpose of the Application class’s abstract start method?

See Answer

Q: The program in Code Listing12-1 calls a Stage class’

The program in Code Listing12-1 calls a Stage class’s setTitle method. What does this method do?

See Answer