Sean Keane wrote:
I'd suggest you try writing some Java code, compiling it, and running it. Then you will get your answer. Simple
That is an excellent advice.
The best way to understand what is happening, is to code an example and see what it does.
You could use a debugger and step through your code to follow the methods that are called.
There is no magic involved, and it is fun to learn how the mechanism works that way.