Define collable collections in java

Define collable collections in java.

A callable collection is an interface whose implementers define a single method with no arguments. The Callable interface resembles Runnable, as both are designed for the classes which potentially executed with another thread. The difference is Runnable cannot return value and throw an exception.

The implementing classes have utility methods which convert from one common form to Callable classes.
Purpose of making a method thread safe - Java
Java supports threads natively without using additional libraries. Using ‘synchronized’ key word makes the methods thread safe.......
Can you explain why a constructor doesn't have return type? - Java
The primary goal of a constructor is to create an object. Though the constructor resembles a method, its explicit purpose is to initialize the instance variables.....
Explain how to add a button in applet - Java
The following are the steps to add a button in applet: 1. Declare and create the object of Button class - Button clickMe;....
Post your comment