Question: Consider the JAVA function given below.statac int dosomething ( int j ) 1 int 1 = 5 0 ;int k; 1 ( 1 = 5

Consider the JAVA function given below.statac int dosomething (int j)1int 1=50;int k;1(1=51k = dosomething(1-1);return 1;else return 0;Which one of the following is TRUE? A. The function returns 0 for all values of j B. The function will exhaust the runtime stack or run into an infinite loop when j =50.O C. The function returns 0 when i =50. D. The function prints the string something for all values of j

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!