Given the code fragment: public void foo(Function<Integer, String> fun) {…} Which two compile?
Given the code fragment:public void foo(Function<Integer, String> fun) {…}Which two compile? (Choose two.) A. foo( n -> Integer.toHexString(n) ) B. foo( toHexString ) C. foo( n -> n + 1 ) D. foo( int n -> Integer.toHexString(n) ) E. foo( n -> Integer::toHexString ) F. foo( Integer::toHexString ) G. foo( n::toHexString ) H. foo( (int n) -> Integer.toHexString(n)… Read More »