Computer Science, asked by AbhijithPal, 6 months ago

What is the final value of the Variable x after the execution of the following code ?
public class Main
{
public static void run(int x)
{
++X;
X++;
}
public static void main(String[] args)
{
int x = 25;
try
{
run(x++);
return;
}
finally
{
X++;
}
}
}​

Answers

Answered by sruchi972
6

Answer:

java programming

I can't understand it

Answered by shree22598mehta
12

Answer:

27 is the correct option

Similar questions