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

public Test()
{
int a=10;
int b=6;
int c= method(a);
int d=method(method(a,b));
int e= method (a,b)+method(b);
System.out.print ln(a+b+c+d+e);
}
public int method(int a)
{
return a+5; or 10+5=15
}
15,6
public int method(int a, int b)
{
106
return method (a+b)+ method (a)+method(b);
}
15+6=21+15+6=42
10+6+15+21+11=63
 public Test() { int a=10; int b=6; int c= method(a); int

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!