Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java question: 8. Given the class header public class MyClass MyClass is a subclass of what class? C. Object a. Class b. SuperClass Exception d.
Java question: 8. Given the class header public class MyClass MyClass is a subclass of what class? C. Object a. Class b. SuperClass Exception d. 9. What must you add to a method header i the method can generate a checked, unhandled exception? a. a try clause b. a throws clause a catch clause d. a finally clause Asubclass can directly access a. public members of a superclass 10. all members of a superclass none of the members of a superclass private members of a superclass Using the same name for methods in different classes with different implementations (but commonly understood behaviors) is called a. b. polymorphism 11. c. information hiding d. encapsulation abstraction To read an object from a binary file you must use a(n) a. ObjectinputStream object wrapped around a File object b. ObjectinputStream object wrapped around a FilelnputStream object. c. InputStream object wrapped around a FilelnputStream object. d. Scanner object wrapped around a FileinputStream object. 12. An abstract class may contain a. b. 13. only abstract methods only non-abstract methods abstract and non-abstract methods nothing 14. An abstract method is any method in an abstract class cannot be inherited has no method body is found in a subclass and overrides methods in a superclass using the reserved word abstract a. d. 15. What happens in a method if there is an exception thrown in a try block followed only by a finally block? a. The program ignores the exception. b The program will not compile without a complete try/catch structure. The program terminates immediately The code in the finally block is executed
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started