Data Structure Linked list Question:

Download Job Interview Questions and Answers PDF

Do you know how to reverse String in Java?

Linked list Interview Question
Linked list Interview Question

Answer:

This is one of my favorite question. Since String is one of the most important type in programming, you expect lot of question related to String any data structure interview. There are many ways to reverse Sting in Java or any other programming language, and interviewer will force you to solve this problem by using without API i.e. without using reverse() method of StringBuffer. In follow-up he may ask to reverse String using recursion as well. See 3 ways to reverse String in Java to learn reversing String using both loops and recursion in Java.

Download Linked list Interview Questions And Answers PDF

Previous QuestionNext Question
Suppose In an integer array, there is 1 to 100 number, out of one is duplicate, how to find?Explain the most efficient method to reverse a linked list?