What is the regular expression to match a digit (0-9) in a string?
Answer options
A
\d
B
[0-9]
C
\D
D
[^0-9]
Correct answer: \d
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.