1

What will be the output of the following program?

class DemoOnOperators
{
public static void main(String[] args)
{
int i, j, k, l = 0;
k = l++;
j = ++k;
i = j++;
System.out.println(i);
}
}

  • 0

  • 1

  • 2

  • 5