Can we call the run() method instead of start()?



Can we call the run() method instead of start()?..

Answer / Ravinder Kumar Jawalia

"No, you cannot call the run() method directly in a Thread to initiate its execution. Instead, you should create and start a new Thread by invoking the start() method on an instance of the Thread class, which internally calls the run() method. The main thread calls the run() method implicitly when it starts executing the main method in a Java program."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What do you understand by looping in java? Explain the different types of loops.

1 Answers  


How do you take thread dump in java?

1 Answers  


Why can we not override static method?

1 Answers  


What is a get method?

1 Answers  


Name four container classes.

1 Answers  


What is the preferred size of a component?

3 Answers   ITSA,


explain about jre and jvm

2 Answers  


Can we sort set in java?

1 Answers  


What is substring 1 in java?

1 Answers  


Explain about method local inner classes or local inner classes in java?

1 Answers  


What is singleton pattern?

1 Answers  


How will you measure that int takes up only 32 bits in memory?

2 Answers   Rolta,


Categories