You have the following code.
class ExamPrep {
public static void main(String[] args){
String s = "Java";
// LINE 4
System.out.println(result);
}
}
What can you put at line 4 so that the output of the program will be v? Choose the correct answer:
A. char result = s[2];
B. char result = s[3];
C. char result = s.charAt(2);
D. char result = s.charAt(3);