File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Jun 16, 2006
Mar 21, 2011 11:36:19
When a class gets loaded? What happens when the constructor is called? When is static block gets called? What is an instance initializer block?
Joined: Jan 20, 2009
Mar 21, 2011 12:06:08
Joined: Sep 14, 2009
Mar 21, 2011 16:32:53
Understanding the order of operation for how a class gets loaded is really important.
Always remember Static blocks and members load before any instance members get loaded. Anything static gets loaded top to bottom.
Constructors always make a call to super() before doing their thing.
When you do things right, people won't be sure you've done anything at all.
I agree. Here's the link:
subject: Instance Initializer
braces without name
How to explain this?
Instance & Static Initializers
is it a valid jsp code
Forward references to variables??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014