I am learning to use ExectorService to pool threads and send out tasks. I have a simple program below
ExectorService
threads
import java.util.concurrent.Execu
Submit - Returns Future object, which can be used to check result of submitted task. Can be used to cancel or to check isDone etc.
Execute - doesn't return anything.