This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
They are instance variables that belong to a class and get initialized before the constructed is called.
SCJP 1.4 - 88%<br />SCWCD 1.5 - Preparing
Joined: Nov 10, 2007
After the constructor is called right?
Joined: Aug 28, 2008
No, before the constructor is called.
Suppose the subclass constructor is called which invokes the superclass constructor then, 1st superclass variables are intialized and the constructor is run. Then controls come to subclass constructor where again 1st subclass variables are intialized and then the constructor run.