Which code fragment compiles?

Given:

executed using this command:
java Myclass My Car is red
What is the output of this class?
Given:

What is the result?
Given:

And the command:
java Main Helloworld
What is the result ?
Given:

and omitting the throws FooException clause results in a compilation error.
Which statement is true about FooException?
Given:
var fruits = List.of(“apple”, “orange”, “banana”, “lemon”);
You want to examine the first element that contains the character n. Which statement will accomplish this?
Given an application with a main module that has this module-info.java file:

Which two are true? (Choose two.)
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.)
Which code fragment added to line 1 enables the code to compile and print Hello Joe?
A)

B)

C)

D)

Given the code fragment:

You want to display the value of currency as $100.00.
Which code inserted on line 1 will accomplish this?