Q. Which lambda expression will reverse a given string 's'?
β
Correct Answer: (A)
s -> new StringBuilder(s).reverse().toString()
Explanation: StringBuilder can reverse a string, and this is the correct approach in Java.