Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

What is the output the program shown below. interface A { } class D extends C { } class C { } class B extends D implements A { } public class Quiz2F {    public static void main(String[] args)    {

What is the output the program shown below.

interface A
{
}

class D extends C
{
}

class C
{
}

class B extends D implements A
{
}

public class Quiz2F
{
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”);
}
}

options:

b is an instance of C
b is an instance of A followed by b is an instance of C
Nothing
b is an instance of A
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"