Java Magazine, September/October 2017
ORACLE COM JAVAMAGAZINE SEPTEMBER OCTOBER 2017 76 fix this argument type lc null doBatch lc Which two pairs of formal parameters and actual argument types could be substituted into the corresponding commented regions to allow successful compilation Choose two a Formal parameter Parent Argument Child b Formal parameter List Parent Argument List Child c Formal parameter List extends Parent Argument List Child d Formal parameter List super Child Argument List Parent e Formal parameter List Parent Argument List extends Parent Answers Question 1 The correct answer is option A This question investigates a couple of distinct concepts within the scope of equality and numeric wrapper types As a reasonable working approximation the operator tests if the bit patterns of the values of the expressions on the left and right sides of the operator are the same For primitive expressions this means the operator returns true if the numbers in the two expressions represent the same number possibly after promotions and unboxing For object reference expressions returns true if the two expressions refer to the same object
You must have JavaScript enabled to view digital editions.