Engineering Full Stack Apps with Java and JavaScript
Which of the given statements are correct about the following code?
//Filename: TestClass.java
class TestClass{ public static void main(String[] args){ A a = new A(); B b = new B(); }; } class A implements T1, T2{} class B extends A implements T1{} interface T1 { } interface T2 { }
Select 4 options
A. (a instanceof T1) will return true.
B. (a instanceof T2) will return true.
C. (b instanceof T1) will return true.
D. (b instanceof T2) will return true.
E. (b instanceof A) will return false.
Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!