final_review - CS 302 Final Review Questions 1 True or...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 302 Final Review Questions 1 True or False 1. Polymorphism is the idea that an object contains knowledge of some data and has methods to act upon that data. 2. In the spiral model of the software life cycle, you produce a few prototypes along the way to a final product. 3. Exceptions must always be either propogated or resolved in your code. 4. To read a file "data.txt" from disk, you can create a Scanner object as follows: Scanner fin = new Scanner("data.txt"); 5. When designing classes, candidate classes can be determined by searching the problem de- scription for nouns . 6. A FileNotFoundException will be caught by the following catch block: catch (Exception e) { System.out.println("There was an error"); } 7. Each catch block can be preceeded by multiple try blocks. 8. If forest is an array of type Tree , and the class Tree implements the interface Growable , then Growable g = forest[4]; is legal Java syntax. 9. If array has type int , then array[3][1][4] has type int 10. The statement new Object[3]; creates a new array of 3 actual Object instances. 11. Subclasses may overload inherited methods of a superclass....
View Full Document

This note was uploaded on 08/08/2008 for the course CS 302 taught by Professor Willbenton during the Spring '07 term at University of Wisconsin.

Page1 / 4

final_review - CS 302 Final Review Questions 1 True or...

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

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