1.

What is the output of this program?class N { int p; double q; } class M extends N { int r; } public class result { public static void main(String args[]) { N p = new N(); M q = new M(); Class object; object = q.getClass(); System.out.print(object.isInstance(p)); } }

A. true true
B. false false
C. true
D. false
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs