what is the collable collections in java?
Answer Posted / divya
public interface Callable<V>A task that returns a result
and may throw an exception. Implementors define a single
method with no arguments called call.
The Callable interface is similar to Runnable, in that both
are designed for classes whose instances are potentially
executed by another thread. A Runnable, however, does not
return a result and cannot throw a checked exception.
The Executors class contains utility methods to convert
from other common forms to Callable classes.
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What is generics in java interview questions?
What is the difference between inner class and nested class?
What is a finally block?
What is a cup of java?
What is try-with-resources in java?
Tell me about different OOPS concepts.
What is the finalize method do?
Explain the use of javap tool.
Compare overloading and overriding?
Is java a digit method?
Why spring singleton is not thread safe?
Which non-unicode letter characters may be used as the first character of an identifier?
Why parsing is done?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
How is final different from finally and finalize?