In one of the
test paper i read this question, and unable to understand it , whether comlier will print the statement "Before start method" or not . 'coz when i m compling this code i m getting complirt error.?
Pls. suggest me right answer.
1: public class Q1 extends
Thread 2: {
3: public void run()
4: {
5: System.out.println("Before start method");
6: this.stop();
7: System.out.println("After stop method");
8: }
9:
10: public static void main(
String[] args)
11: {
12: Q1 a = new Q1();
13: a.start();
14: }
15: }