Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9:02 AM Tue 16 Feb 993% TOD to PART II: MULTIPLE CHOICE QUESTIONS (20 POINTS) In what follows you have multiple choice questions related to

image text in transcribed
image text in transcribed
9:02 AM Tue 16 Feb 993% TOD to PART II: MULTIPLE CHOICE QUESTIONS (20 POINTS) In what follows you have multiple choice questions related to the provided java code. Put your answers in the below table. 1 2 3 4 5 6 7 8 10 6 8 9 public interface A public abstract void ml(); > public abstract class B implements At public void m1() { System.out.println("31"); ) public void m2({ System.out.println("B2"); } public abstract void m3(); public void m4() { System.out.println("B4"); public class c extends B{ public void mi(){ System.out.println("C1"); > public void m3() { System.out.println("C3"); public class DE public void ml{ System.out.println("01"); public class MCO public static void main(String[] args) { // To Do code here taken from the next page } Page 3 of 7 9:02 AM Tue 16 Feb 93% TO to In each question you have lines of java code. You should assume that these lines of code are in the main method, and choose the correct output from the corresponding multiple choices. 1 Ce new C(); c.m2(); a. B2 b. Compile time error C. Runtime error 2 CC-new B(); e.m3(); a. C3 b. Compile time error C. Runtime error 3 Object = new D(); CC-(C) o; c.ml(); a. CI b. Compile time error C. Runtime error 4 Object = new D); o.ml(); a. Di b. Compile time error C. Runtime error 5 Bnew B(); b.m2(); a. B2 b. Compile time error C. Runtime error a AL b. Compile time error C. Runtime error 6 A a new A(); 7 A a new CC) a.ml(); a B1 b. Ci C. Runtime error 8 Bb-new c); b.ml(); a. BI b. CI C. Runtime error 9 Bb new c(); b.m3(); a. C3 b. Compile time error c. Runtime error 10 BE-new C(); b.m4(); a. 14 b. Compile time error C. Runtime error Page 4 of 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions