1.

What is output of following code? package pack1; class A { public A() { System.out.print( object created ); } } package pack2; import pack1.*; class B { A a=new A(); }

A. Output is: object created
B. Output is: object createdobject created
C. Compile time error
D. Run time error
Answer» D. Run time error


Discussion

No Comment Found