What are regexes in Java?

84. What are regexes in Java?

  1. API to define a pattern for searching strings
  2. String
  3. Array to create a new integer
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.