I missed this question in the
scjp 6 study guide and am hoping for clarification. Chapter 4 question 6:
I thought the instance code block would execute before the member variable "index" was defined and so not compile, which is wrong. This does compile and that tells me that the member vars get defined prior to the instance code block being executed.
Is there a complete listing somewhere of the sequence of events that occur (as far as scjp 6 is concerned) when you start a
java program and when you instantiate a class? For example: Class vars are defined, main method, local method vars defined...
Thanks,
Gil