Examlex

Solved

Why Is the Following Method One Which Has Infinite Recursion

question 54

Multiple Choice

Why is the following method one which has infinite recursion?
Public int infiniteRecursion(int n)
{
If (n > 0) return infiniteRecursion(n) + 1;
Else return 0;
}


Definitions:

Fixed Annual Fee

A fixed annual fee is a set amount charged yearly for access to a product or service, unrelated to usage levels.

Trash Disposal

involves the collection, processing, managing, and recycling or disposal of waste materials produced by human activity.

Efficient Recycling

The process of collecting, processing, and reusing materials in the most cost-effective, environmentally friendly, and resource-efficient manner.

Scrap

Discarded waste material, especially metal suitable for reprocessing or remnants from manufacturing processes.

Related Questions