Given a sample code:
class Test extends Thread {
public void run() {
System.out.println("One");
System.out.println("Two");
}
private void method() {
System.out.println("Three");
}
public static void main(String args[]) {
Test t = new Test();
t.method();
t.start();
}
}
Which of the following statement is correct ?
(A) Print One Two Three
(B) Print Two Three One
(C) Print Three One Two
(D) Print Three One Two
(D)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.