how its run?



how its run?..

Answer / Jeetesh Garbyal

In Java, the 'run' method is typically used in the context of Runnable interfaces. The purpose of the run() method is to define the task or behavior that needs to be executed by a separate thread from the main application thread. To start the execution of this task, you would first create an instance of a class implementing Runnable and then pass it as an argument to a Thread constructor or executor service.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Which package is imported by default?

1 Answers  


Why declare Main() inside the class in java ?

1 Answers   HCL,


What are the important features of Java 9 release?

1 Answers  


What is replaceall in java?

1 Answers  


how to print the below in java?thanks in advance.... * * * * * * * *

3 Answers  


What is a default constructor and also define copy contrucyor?

1 Answers   Global Logic,


what are Hostile Applets?

1 Answers  


How to know the host from which Applet is originated?

1 Answers   Wipro,


why doesn't java run on all platforms?

1 Answers  


Is minecraft java edition free?

1 Answers  


Is an empty arraylist null?

1 Answers  


What is token in java?

1 Answers  


Categories