Here you will learn writing Java program to sum the digits of a number using recursion. for input 1547 output after adding 1, 5, 4, and 7 should 1+5+4+7 = 17.