Java logical questions and answer

  1. Write a Java program to check whether a number is a palindrome or not?
  2. Write a Java program to check whether the given two strings are anagrams or not?
  3. Write a program to find the factorial number using a while loop in Java.
  4. Write a Java program to check whether a number is even or odd?
  5. Write a Java program to check whether a number is prime or not?
  6. Write a Java program to reverse sentence by words.
  7. Write a Java program to Reverse each word from a string.
  8. Write a Java program to print the Nth Fibonacci series.
  9. Write a Java program to print the Nth odd Fibonacci series.
  10. Find the longest common prefix from the String array.
  11. Program to find the occurrences of numbers in an array.
Post a Comment (0)
Previous Post Next Post