I had a job interview recently and I was supposed to do an exercise where one part of the coding was using the ExecutorCompletionService. Well, there were other ways, but this would have been the easiest.

My problem : I did not know about this. After I found out about this, I could look it up easily (tutorials, examples, documentation, even source code)

Could I have found this wrapper using online resources only? (I mean if I download the source code of the JDK, I can used a normal IDE to look for usages of classes, but can I do this online?)


1 Answer 1


First of all you can use the Javadoc provided by Oracle: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorCompletionService.html

If a class or interface has known (= part of the JDK) subclasses or implementing classes, they will be listed at the top.

Another online service I use sometimes is GrepCode: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/util/concurrent/ExecutorCompletionService.java

You can click on each of the down arrows (⇩) to get a menu for finding usages, derived types, overrides…


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.