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 |
what is the reason behind non static method cannot be referenced from a static Context?
Can you override static method in java?
Is age discrete or continuous?
Is Java a dying language?
How do generics work in java?
What is the integer of 16?
write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?
Explain different forms of polymorphism?
What is the format specifier?
What are white spaces in java?
How a string is stored in memory?
How will you invoke any external process in java?