Java : Recursion Function - Exercises and Solution


1. Write a Java program to calculate factorial of a number using recursion

View Solution

2. Write a Java program to print the Fibonacci series using recursion

View Solution

3. Write a Java program to count the digits of a number using recursion

View Solution

4. Write a Java program to find the sum of digits of a number using recursion

View Solution

5. Write a Java program to reverse a given number using recursion

View Solution

6. Write a Java program to calculate the power of a number using recursion

View Solution

7. Write a Java program to check whether a given number is prime or not using recursion

View Solution

8. Write a Java program to convert a binary number to a decimal number using recursion

View Solution

9. Write a Java program to convert a decimal number to its binary equivalent using recursion

View Solution

10. Write a Java program to convert a decimal number to its octal equivalent using recursion

View Solution

11. Write a Java program to count substrings with same first and last characters using recursion

View Solution

12. Write a Java Program to copy one String to another using recursion

View Solution

13. Write a Java program to generate power set in lexicographic order using recursion

View Solution

14. Write a Java program to find the first uppercase letter in a string using recursion

View Solution

15. Write a Java program to calculate length of a string using recursion

View Solution

16. Write a Java program to count total number of consonants using recursion

View Solution




Basic Programs