1.

Which of these method is used to implement Runnable interface?(a) stop()(b) run()(c) runThread()(d) stopThread()The question was posed to me during an interview for a job.This intriguing question comes from Implementing Runnable interface for Threads in division Multithreading of Java

Answer»

Correct option is (b) run()

EASY explanation: To implement RUNNABLE interface, a class NEEDS only to implement a single METHOD CALLED run().



Discussion

No Comment Found

Related InterviewSolutions