79.9k views
5 votes
. Unlike a loop, a recursive method does not require code to stop it from repeating? (true, false)

User Falukky
by
7.4k points

1 Answer

7 votes

Answer:

false

Step-by-step explanation:

There two methods of continuously repeating some task which are as following:-

  1. Use loops.
  2. Recursion.

One of the most important part of recursive method is base case.Which is used to stop the recursion from going in infinite loop without a base case the function will keep on calling itself without stopping.

So the base is used to stop the recursion.Hence the answer is false.

User Valterriann
by
8.0k points