Millionaire Mode
Programming in Java
Question 1 of 5
What is the output?
class sample4 extends Thread {
public static void main(String[] args) {
new sample4().start();
}
public void run() {
try {
System.out.println("Starting to wait");
wait(1000);
System.out.println("Done waiting, returning back");
}
catch(InterruptedException e) {
System.out.println("InterruptedException Found");
}
catch(Exception e) {
System.out.println("Exception found");
}
}
}
- Starting to waitGoes an infinite wait and deadlock
- Starting to waitException found
- Starting to waitDone waiting, returning back
- Starting to waitInterruptedException Found
- None of these
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