Millionaire Mode

Vectors

Question 1 of 1

What will be the output of the program?
package foo;
import java.util.Vector; /* Line 2 /
private class MyVector extends Vector
{
int i = 1; /
Line 5 /
public MyVector()
{
i = 2;
}
}
public class MyNewVector extends MyVector
{
public MyNewVector ()
{
i = 4; /
Line 15 /
}
public static void main (String args [])
{
MyVector v = new MyNewVector(); /
Line 19 */
}
}

  1. Compilation will succeed.
  2. Compilation will fail at line 3.
  3. Compilation will fail at line 5.
  4. Compilation will fail at line 15.

Prize Money

15₹7 Crores
14₹1 Crore
13₹50,00,000
12₹25,00,000
11₹12,50,000
10₹6,40,000
9₹3,20,000
8₹1,60,000
7₹80,000
6₹40,000
5₹20,000
4₹10,000
3₹5,000
2₹2,000
1₹1,000