Carlota Vina wrote:Then the order it b.getH() and after the System.out.println?
That doesn't look clear, but I think the answer is no.
You go from left to right. The order is therefore,
1: Find system class
2: Find its out field
3: Find its println() method, but that cannot complete until it “knows” what its argument is.
4: Evaluate the argument for println(), inside the (), starting with "Beta "
5: Then execute the + operation
6: The + operator finds it is necessary to run the getH() method first. I shall abbreviate getH() to one line and forget that it includes a print instruction. When getH() returns, the + operator can complete its task.
7: Now that the argument for println() is complete, the println() method can complete its execution
At least I think that is right.
I promise I will be the best, most loyal friend ever! All for this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database