What is the output of the following program?
class ExamPrep {
public static void main(String[] args){
String s = "Java Exam Prep";
boolean result = s.contains("exam");
System.out.println(result);
}
}
Choose the correct answer:
A. true
B. false
C. -1
D. 4
E. This program will not compile
F. This program will fail with an exception at runtime