Magnaquest interview question

Write a program in Java to reverse a string without any built-in functions

Interview Answer

Anonymous

21 Aug 2025

you can use StringBuilder and recursion to make the new string or using two pointers to change the positions of the char array and then converting back into string using new String(char_array)