This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have a Query regarding the classes that implement an interface. Is there any easy method to identify the classes that are implementing an interface? I use ecllipse as the editor. Is there any shortcut keys available to get this information.
In Eclipse, you can select the interface name, right-click and select Open Type Hierarchy. That will show you, in the current project, the classes that implement the interface.
As a general solution, however, that does not always work because often the implementation class used at runtime is in some other component/project. The thing that has worked best for me is to use the debugger to determine the class of the object, or to print the object.getClass() value.