ExamVeda
Login
Home
This question belongs to Java Program Threads
Threads
?

When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

2 Comments
Harish Devaraj
Harish Devaraj 6 years ago
49.import javax.swing.*;
class Tst
{
public static void main(String ... a)
{
JFrame j1=new JFrame("My Frame");
JFrame j2=j1;
JFrame j3=j2;
j1.setVisible(true);
j2.setVisible(true);
j3.setVisible(true);
}
}
(2 Points)
Hari Haran
Hari Haran 6 years ago
run method in thread used to perform actions. it must surely overrides in our program then only start method can able to access and start the thread execution