what is the difference between thread and runnable types? : Java thread



what is the difference between thread and runnable types? : Java thread..

Answer / Sarveshkumar

Thread is a Java class that represents a separate flow of execution, while Runnable is an interface that defines what a thread should do. A Thread instance can be created using either a Runnable object or by extending the Thread class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you load an HTML page from an Applet ?

2 Answers  


Can you pass by reference in java?

1 Answers  


Can we have a try block without catch block?

1 Answers  


How do you sing an Applet ?

1 Answers  


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1 Answers   Aricent,


What is meant by Java interpreter?

4 Answers  


What is the abstraction?

1 Answers  


Can the garbage collection be forced by any means?

1 Answers  


Why is stringbuffer called mutable?

1 Answers  


what is the full form of java

3 Answers  


What is hashing in java?

1 Answers  


What are anonymous inner classes?

1 Answers  


Categories