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
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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
is it a valid jsp code
Instance & Static Initializers
How to explain this?
Forward references to variables??
braces without name
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014