The first name of a person should contain only alphabets and space. Which of the following regular expression will match the requirement?
Answer options
A
Which of the following regular expression will match the requirement?
B
[a-zA-Z ]
C
[\\s]+
D
[a-zA-Z ]+
E
[\\s]
Correct answer: [a-zA-Z ]
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.