What’s the difference between callable and runnable?



What’s the difference between callable and runnable?..

Answer / Sharad Kumar Singh

"Runnable is an interface in Java, which declares the void run() method. It can be directly implemented or by extending Thread class to create a new thread of execution. Callable is also an interface that extends Future, allowing it to return a value and throw exceptions. A Callable object can have one call method, which should return a value."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

what is the reason behind non static method cannot be referenced from a static Context?

2 Answers  


Can you override static method in java?

1 Answers  


Is age discrete or continuous?

1 Answers  


Is Java a dying language?

1 Answers  


How do generics work in java?

1 Answers  


What is the integer of 16?

1 Answers  


write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?

1 Answers  


Explain different forms of polymorphism?

1 Answers  


What is the format specifier?

1 Answers  


What are white spaces in java?

1 Answers  


How a string is stored in memory?

1 Answers  


How will you invoke any external process in java?

1 Answers  


Categories