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:

Management

The process of dealing with or controlling things or people, which includes planning, organizing, leading, and controlling an organization’s resources to achieve specific goals.

Universal Declaration

Often refers to the Universal Declaration of Human Rights adopted by the United Nations General Assembly, outlining basic human rights to be universally protected.

Human Rights

The fundamental rights and freedoms that every person is entitled to, regardless of nationality, place of residence, sex, national or ethnic origin, color, religion, language, or any other status.

Trade Unions

Organizations formed by workers from related fields that work toward protecting their mutual interests and improving conditions such as wages, working hours, and workplace safety.

Related Questions