Debugging a program is very important in programming. It helps you in find errors and saves lot of time. In the following steps, we will create and debug a Java Program. 1. Write a Java Program
Write a program that computes the factorial of a number n. This program should have an error and gives wrong output. We will debug this program to find the error.
2. Set Breakpoint Break Points