Questions from Starting Out With Java


Q: The variable myWindow references a JFrame object. Write a statement that

The variable myWindow references a JFrame object. Write a statement that displays the object’s window on the screen.

See Answer

Q: What is the difference between overriding a superclass method and overloading a

What is the difference between overriding a superclass method and overloading a superclass method?

See Answer

Q: When does dynamic binding take place?

When does dynamic binding take place?

See Answer

Q: What is meant when it is said that an exception is thrown

What is meant when it is said that an exception is thrown?

See Answer

Q: What is the difference between a text file and a binary file

What is the difference between a text file and a binary file?

See Answer

Q: What happens when you serialize an object? What happens when you

What happens when you serialize an object? What happens when you deserialize an object?

See Answer

Q: What happens when an exception is thrown, but the try statement

What happens when an exception is thrown, but the try statement does not have a catch clause that is capable of catching it?

See Answer

Q: Where does execution resume after an exception has been thrown and caught

Where does execution resume after an exception has been thrown and caught?

See Answer

Q: What types of objects can be thrown?

What types of objects can be thrown?

See Answer

Q: What is the difference between a checked exception and an unchecked exception

What is the difference between a checked exception and an unchecked exception?

See Answer