Palindrome String In Java. In the above example, we have a string radar stored in str. For example, dad is a palindrome, as its reverse is dad, whereas.
Radar is a palindrome string. A string is said to be palindrome if reverse of the string is same as string.