Show the output of running the class Test in the following code lines:

```
interface A {
}

class C {
}

class B extends D implements A {
}

public class Test {
public static void main(String[] args) {
B b = new B();
if (b instanceof A)
System.out.println("b is an instance of A");
if (b instanceof C)
System.out.println("b is an instance of C");
}
}

class D extends C {
}```
a. Nothing.
b. b is an instance of A.
c. b is an instance of C.
d. b is an instance of A followed by b is an instance of C.


d

Computer Science & Information Technology

You might also like to view...

If Number = 8, what will be displayed after the following statement is executed?

``` Set Reciprocal = 1/Number Write Reciprocal``` a. 0.125 b. 1/8 c. “Reciprocal” d. An error message

Computer Science & Information Technology

____________________ has a goal of overloading the memory space provided to the variable. This might either allow the attacker to crash the computer or break into it.

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

Computer Science & Information Technology

The frameset DTD is best used for documents that need to strictly conform to the latest XHTML standards.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

________ devices include free online storage and sync service called iCloud

A) Android B) Apple C) Linux D) Microsoft

Computer Science & Information Technology