I am a little confused on the behavior of Future.cancel(true). It does interrupt the task if it is already running but what about the ones that have not yet started? They do get cancelled but are they removed from the queue or not? In Stackoverflow I found contradcting answers:
Does not remove the task from the queue
Does remove the task from the queue
Can someone explain the actual behavior?