This post originated from an RSS feed registered with Java Buzz
by Javin Paul.
Original Post: How to reverse String in Java using Iteration and Recursion
Feed Title: Javarevisited Blog
Feed URL: http://javarevisited.blogspot.com/feeds/posts/default?alt=rss
Feed Description: Blog on Java, Unix, Linux, FIX Protocol technology. I share my experience as tutorial, article, interview questions, programming, design etc.
How to reverse string in java is popular core java interview question and asked on all levels from junior to senior java programmingjob. since Java has rich API most java programmer answer this question by using StringBufferreverse() method which easily reverses an Stringin Java and its right way if you are programming in Java but most interview doesn't stop there and they ask interviewee to reverse Stringin Java without using StringBuffer or they will ask you to write an iterative reverse function which reverses string in Java. In this tutorial we will see how to reverse string in both iterative and recursive fashion. This example will help you to prepare better for using recursion in java which is often a weak area of Java programmer and exposed during a programming interview.