Given the code fragment:
public static void main (String [ ] args) throws IOException {
BufferedReader br = new BufferedReader (new InputStremReader (System.in));
System.out.print (“Enter GDP: “);
//line 1
}
Which code fragment, when inserted at line 1, enables the code to read the GDP from the user?
Given the code fragment:
List
List
//line n1
Which code fragment, when inserted at line n1, prints 10 20 15 30?
Given:
Which two interfaces can you use to create lambda expressions? (Choose two.)