Concept of promises in Java
<p>Is there a concept of using promises in java (just like ut is used in JavaScript) instead of using nested callbacks ? </p>

<p>If so, is there an example of how the callback is implemented in java and handlers are chained ? </p>