Home »
MCQs »
Java MCQs
What are regexes in Java?
84. What are regexes in Java?
- API to define a pattern for searching strings
- String
- Array to create a new integer
- Wrapper class
Answer: A) API to define a pattern for searching strings
Explanation:
Java Regular Expressions or Regex is an API for defining String patterns that can be used for searching, manipulating, and editing a string.