Q:
      
      
         
            
public class Threads2 implements Runnable {
public void run() {
System.out.println("run.");
throw new RuntimeException("Problem");
Which among the following is true?
}
public static void main(String[] args) {
Thread t = new Thread(new Threads2());
t.start();
System.out.println("End of method.");
}
}
         
       
      
      
      
          
      
      
          Answer & Explanation
         Answer: D) End of method. run. java.lang.RuntimeException: Problem         
         
Explanation: Only D can be true
       
      
      
      
          View Answer
          Report Error
          Discuss