Suppose A is an interface, B is a concrete class with a no-arg constructor that implements A. Which of the following is correct?

a. A a = new A();
b. A a = new B();
c. B b = new A();
d. B b = new B();


bd Since B is a concrete class with a no-arg constructor, d is correct. Since an instance of B is also an instance of A, b is also correct.

Computer Science & Information Technology

You might also like to view...

How is the kill command used in CentOS 7?

What will be an ideal response?

Computer Science & Information Technology

In _________________________, as a character is typed Word inserts the character and moves all the characters to the right of the typed character one position to the right.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

?Zain, an administrator at PerfDot Inc., creates a form using Microsoft Access 2016Form Wizard. He wants to make to change the font type, font size, and font color of the labels in the form. Which of the following views should Zain use for this purpose?

A. ?Layout view B. ?Form view C. ?Modify view D. ?Data view

Computer Science & Information Technology

____________________ files are text files that are used for creating and formatting web pages.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology