Given a sample code:
1 public class Test implements Runnable {
2 public void run() {
3 System.out.println("Inside run");
4 }
5 public static void main(String[] args) {
6 Thread t = new Thread();
7 t.start();
8 System.out.println("End of main");
}}
Which of the following statement is correct ?
(A) Print "Inside run"
(B) Print "Inside run" then "End of main"
(C) Print "End of main"
(D) Print "End of main" then "Inside run"
(C)
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.