Question: Please give me this 8 multiple choice questions answer. Multiple Choice 1. What Java syntax is used to declare that a class B is extern
Multiple Choice 1. What Java syntax is used to declare that a class B is extern class o A. class A super B f B class B extends A { }; o C. class B from A : o D. class B: public A t... 2. If a class B is derived from A, then which of the following terms describes A? o A. ancestor class. o B. base class. C. parent class. o D. superclass E. All of the above. 3. Using the variable declarations at the top of this section, which of the following assignment statements are legal (uo compilation errors)? o D. Both (A) and (B) are legal, but not (C) o E. Both (A) and (C) are legal, but not (B). o F. Both (B) and (C) are legal, but not (A). 4. Consider the assignment statement a b; (with the variable declarations at the top of this section). Which answer is true? o A. The assignment statement is illegal (compiler eror) o B. The assignment statement compiles okay, but sometimes causes a C o C. The assignment statement compiles okay, and cannot cause a ClassCastException at runtime lassCastException at runtime
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
