About Question enthuware.ocpjp.v11.2.3075 :
Posted: Tue Jan 17, 2023 12:52 am
Hello, Question for Option 1:
public static double compute(double base, Function<Integer, Integer > func){
return func.apply((int)base); }
What is the data type returned? Isn't it a double as per method name? Thanks.
public static double compute(double base, Function<Integer, Integer > func){
return func.apply((int)base); }
What is the data type returned? Isn't it a double as per method name? Thanks.