Question: java Show the output of running the class Test in the following code lines: interface A{ } class C { } class B extends D


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) \{ Bb= new B(); if ( b irhtanceof A ) System out.println("b is an instance of A"); if (b instanceof C ) System.out.printin("b is an instance of C "); \} \} class D extends C{ Which of the following are Java keywords? A) casting B) instance or C) cast D) instanceof Which of the following are Java keywords? A) casting B) instance Of C) cast D) instanceof
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
