Question 41
var numbers = List.of(0,1,2,3,4,5,6,7,8,9);
You want to calculate the average of numbers. Which two codes will accomplish this? (Choose two.)
You want to calculate the average of numbers. Which two codes will accomplish this? (Choose two.)
Question 42
Given:
List<String> longlist = List.of("Hello","World","Beat");
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter "e"?

List<String> longlist = List.of("Hello","World","Beat");
List<String> shortlist = new ArrayList<>();
Which code fragment correctly forms a short list of words containing the letter "e"?

Question 43
Given:

Which two statements are true if the method is added to Bar? (Choose two.)

Which two statements are true if the method is added to Bar? (Choose two.)
Question 44
Given:

Which one is correct?

Which one is correct?
Question 45
Given:

and

Which two method definitions at line n1 in the Bar class compile? (Choose two.)

and

Which two method definitions at line n1 in the Bar class compile? (Choose two.)


