1.

Correct way to define object of sample class in which code will work correctly is:
 class abc { int i; float k; public abc(int ii, float kk) { i = ii; k = kk; } }  

A. Abc s1 = new abc(1);
B. Abc s1 = new abc();
C. Abc s2 = new abc(1.4f);
D. Abc s2 = new abc(1, 1.4f);
Answer» E.


Discussion

No Comment Found