Given:
What is the result?
Which statement is true about the single abstract method of the java.util.function.Function interface?
Given:
Which is refactored code with functional interfaces?
Given:
final class Folder {//line n1
//line n2
public void open () {
System.out.print(“Open”);
}
}
public class Test {
public static void main (String [] args) throws Exception {
try (Folder f = new Folder()) {
f.open();
}
}
}
Which two modifications enable the code to print Open Close? (Choose two.)