Palindrome in java

A word, phrase, number or sequence that reads the same backwards as forwards String = reverse of a String e.g MADAM, MOM, 01022010 etc. Let’s see different ways how we can determine, if a word or string is palindrome or not in Java. package trypkg; public class Pallindrom { public static void main(String[] args) {…