adplus-dvertising
frame-decoration

Question

Check the below code and state whether it is called Recursion in Java?
void methodA()
{
  methodB();
}
void methodB()
{
  methodA();
}

a.

YES

b.

NO

c.

May be YES or NO

d.

Can't Say

Posted under Java Programming

Answer: (b).NO

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Check the below code and state whether it is called Recursion in Java?