What will be the output of the following program?
class Public
{
public static void main(String ARGS [])
{
Public O = new Public();
int b = 25;
O.string();
}
void string()
{
int b = 5;
int a = b;
int c = a * b;
int d = c + a;
int e = a + c * b;
System.out.println(a + " , " + b + " , " + c + " , " + d + " , " + e);
OutPut1 t = new OutPut1();
System.out.println(t.a + " , " + t.b + " , " + t.c + " , " + t.d + " , " + t.e);
OutPut1 t2 = fix(t);
OutPut1 t3 = new OutPut1();
System.out.println(t.a + " , " + t2.e);
}
OutPut1 fix(OutPut1 ARGS)
{
ARGS.b = ARGS.a + ARGS.b + ARGS.c + ARGS.d + ARGS.e;
return ARGS;
}
}
class OutPut1
{
int a = 5;
int b = a;
int c = a + b;
int d = a + b * c;
int e = d + c * a;
}