Consider the below statements. Statement 1 : Matcher class interprets the pattern in a String Statement 2 : Matcher class matches the regular expression against the text provided Which of the following is true?
Answer options
A
Statement 1 alone is correct.
B
Both Statement 1 and 2 are correct
C
Both Statement 1 and 2 are incorrect.
D
Statement 2 alone is correct.
Correct answer: Both Statement 1 and 2 are correct
Detailed Solution & Conceptual Analysis
This question has been retained as-is due to its unique context.
Key Engineering Takeaway
In Java Programming, understanding the underlying mechanics of Java Programming is critical for writing performant, bug-free production code and passing rigorous technical architecture reviews.