Question: { public Test ( ) { int a = 1 ; int b = 2 ; int c = method ( a ) ; int

{
public Test()
{
int a=1;
int b=2;
int c= method(a);
int d= method(method (c,b);
int e= method (d,b)+ method (d);
System.out.print ln(a+b+c+d+e);
}
public int method(int a)
{
return a+5;
}
public int method(int a, int b)
{
return method (a+b)+ method (a)+ method(b;
}
Show the number that gets returned?
 { public Test() { int a=1; int b=2; int c= method(a);

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!