Exam2Review2

Exam2Review2 - Exam 2 Review Session 1 Exceptions are...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Exam 2 Review Session 1. Exceptions are objects that describe unusual or erroneous situations. How do you catch an exception? 2. What is the purpose of the optional finally{} block when handling exceptions? 3. How are exceptions defined in a class (how do you specify an exception can be thrown?) 4. Some common exceptions you may have encountered are listed below, when have these needed to be caught? IOException: NumberFormatException: NotSerializableException: FileNotFoundException: ArrayIndexOutOfBoundsException: 5. What is a Stream? 6. What are the three standard Streams? 7. When two objects share the same memory address they are called? 8. Explain the terms by reference, by value, and what types of parameters are associated with each. 9. How are nested classes different from non-nested classes, Why use them? 10. How are interfaces, abstract classes, and inherited classes different?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
11. What is the comparable interface used for and what is the signature of the method that needs to be defined by the implementing class. 12. What is a polymorphic reference, and when are they resolved?
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Exam2Review2 - Exam 2 Review Session 1 Exceptions are...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online