Question asks if following code will compile and run:
1. class TestThread3 extends
Thread {
2. public void run() {
3. System.out.println("Running");
4. System.out.println("Done");
5. }
6.
7. private void xxx() {
8. System.out.println("In xxx");
9. }
10.
11. public static void main(
String args[]) {
12. TestThread3 tt3 = new TestThread3();
13. ttt.xxx();
14. ttt.start();
12. }
13. }
According to R&H Mock exam, this will compile and run. However it will not.