Method parameter order in Java

Possible duplicate:
How do warranty options run in Java?

If I have a Java method, for example:

    public void func(byte b, byte c) {...}

And I use it as follows:

    a = 0;
    func(a++, a);

Which parameter is passed first? Because, if I'm not mistaken, if it is left, then b = 0 and c = 1. And if it is correct, then b = 0 and c = 0?

Thank.

+5
source share
1 answer

Arguments are evaluated from left to right, as described in JLS section 15.7.4 .

+9
source

All Articles