Method names run and start | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Method names run and start

So run() and start() are both fixed method terms as opposed to, e.g., bark() or blow()? I am not sure if they extend all the way back to some Java class and tell the program to do something more concurrently than any other method would. If you specifically mention them in the figure and ask for them in the chart, I'll have to assume so. But their purpose is really not entirely clear.

20th Jul 2017, 2:50 PM
Amina Diehl
Amina Diehl - avatar
1 Answer
+ 1
Since I've worked with Java for android , I know that run and start are methods for a runnable class , it is basically for used for multi threading , the code written in run will run when the start method is invoked . However this applies for android and may or may not apply for pure Java.
21st Jul 2017, 1:00 AM
Kedar Kale
Kedar Kale - avatar