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
Explanation
Quick AnswerThe correct answer is A new String object is created and returned because it directly addresses the core logic of Java Programming.
This question has been retained as-is due to its unique context.