Examlex

Solved

Show the Output of Running the Class Test in the Following

question 14

Multiple Choice

Show the output of running the class Test in the following code lines: interface A {
Void print() ;
}
Class C {}
Class B extends C implements A {
Public void print() { }
}
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") ;
}
}


Definitions:

Production Process

The series of steps or actions taken to convert raw materials into finished goods or services.

Units Started

The number of units of product that have entered the production process but may not yet be completed.

Production

The process of creating, manufacturing, or producing goods and services.

Work in Process

Refers to materials and components that have begun their transformation to finished goods but are not yet completed.

Related Questions