Java Magazine, Sept/Oct 2017
ORACLE COM JAVAMAGAZINE SEPTEMBER OCTOBER 2017 74 fix this c false true d false false e Compilation fails after line n1 Question 2 intermediate Given these two classes class Base int x 1 class Sub extends Base int y 1 line n1 Which are true of a static method that is inserted at line n1 if no other additions are made to either of the classes a It can never access fields int x and int y b It can never access field int x but it can access field int y given a suitable reference c It can access fields int x and int y given suitable references d It can access only fields int x and int y using the form this x and this y e It can access fields int x and int y using the form this x and this y although other forms might be possible Question 3 advanced Given the following public void kickOff ExecutorService es Executors newFixedThreadPool 4 Callable String c new Callable String public String call return Done
You must have JavaScript enabled to view digital editions.