- Study guides, Class notes & Summaries
Looking for the best study guides, study notes and summaries about ? On this page you'll find 1 study documents about .
1 results
Exam (elaborations)
Core Java 19 topics Questions and Answers
/ *	THREADS-0 */ 
 
1Q.What will be the output of the program? class MyThread extends Thread { 
public static void main(String [] args) { MyThread t = new MyThread(); (); 
S("one. "); (); S("two. ");} 
public void run() 
{ 
S("Thread "); 
}} 
 
ans : an exception occurs at runtime. 
 
2Q.Which of the following statements can be used to create a new Thread? (Choose TWO) 
 
Implement .Thread and implement the start() method. Extend .Thread and override the run() method. ** Implement .Runnabl...