dave
2015-05-03 13:32:35 UTC
I am having a test on java computer science, these questions will be on there, I think I have the right answer, but to be safe, I want others to check them for me.
1. Name 3 checked exceptions
2. Name 3 runtime exceptions
3. Ant object that can be thrown as an Exception must inherit from what class?
4. What is the correct header for a method that will accept an array of 10 integers as an argument?
5. If a subclass explicitly calls the constructor of the superclass, where must the call be made in the subclass constructor?
6. Can a subclass write methods that do not appear in the superclass?
7. Must a subclass override every method of its superclass?
8. What is meant by an Exception propagating up the cll stack?
9. What is contained in a Java package?
10. Does the Java compiler compile source code to machine code?
11. What method is used to retrieve the error message from an Exception?
12. Can 2 methods in the same class definition file have the same signature?
13. What are the 3 components every object-oriented language must have?
14. What must a class do to implement an interface besides declaring that in the class heading?
15. Write the class definition for a check-exception named: ImproperPriceException:
16. Write the class definition for a RuntimeException named: ImproperPriceException:
17. What is the purpose of the import statement?