Re: About Question enthuware.ocpjp.v8.2.1496 :
Posted: Sun Dec 11, 2016 9:40 am
Minor suggestion...
Without "except class Thread" (or any other additional clarification for the matter) the question is ambiguous. If thread is just a concept, then class Thread belongs to "framework classes". Therefore, we always need class Thread (directly or indirectly - e.g. via ExecutorService) to run any code "in a separate thread". In other words, we cannot simply implement Runnable (correct answer) and "execute in a separate thread without using any other framework classes".What is/are the name(s) of the interface(s) that can be implemented by a class so that it can execute in a separate thread without using any other framework classes (except class Thread)?