21)A class contains methods and ______. a)clients b)interfaces c)data fields d)data structures 22)A(n) ______ is an instance of a class. a)method b)data field c)interface d)object 23)Which of the following is true about a constructor in Java? a)all constructors have a return type of void b)a constructor cannot have parameters c)a constructor has the same name as the class d)a class can only have a single constructor 24)A(n) ______ is a class that inherits the members of another class. a)base class b)superclass c)abstract class d)subclass 25)The ______ keyword is used to call the constructor of the superclass. a)extends b)super c)this d)implements 26)The definition of a subclass includes a(n) ______ clause to indicate its superclass. a)extends b)super c)this d)implements 27)In Java, a class can extend ______. a)at most 1 class b)at most 16 classes c)at most 32 classes d)as many classes as required 28)A method indicates that an error has occurred by ______ an exception. a)throwing b)catching c)implementing d)declaring 29)To ______ an exception means to deal with the error condition. a)throw b)catch c)implement d)declare 30)Which of the following is true about runtime exceptions? a)they must be handled locally b)they must be explicitly thrown from the method c)they are used in situations where the method has encountered a serious problem d)they can often be prevented by fail-safe programming