Examlex

Solved

How Many Times Will the Following Method Call Itself If

question 1

Multiple Choice

How many times will the following method call itself if the value 10 is passed as the argument?
Public static void message(int n)
{
If (n < 0)
{
System.out.println("Print this line.\n") ;
Message(n + 1) ;
}
}


Definitions:

Related Questions