What happens when you call concat() on a String object in Java?
Answer options
A
The original String is modified in place
B
A new String object is created and returned
C
A compile-time error occurs
D
The method modifies the internal char array
Correct answer: A new String object is created and returned
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 is critical for writing performant, bug-free production code and passing rigorous technical architecture reviews.