Campbell Ritchie wrote:Why is that Date reference static?
Knute Snortum wrote:What is the scope of the variable date? Is it an instance variable?
Matthew Brown wrote:
shoeb sattar wrote:what would be the answer if no constructor was declared explicitly?
Well, in that case there'd be an implicit declaration of a no-arg constructor, but it would be misleading to say that any particular line declared it.
If a class does not explicitly declare any, the Java compiler automatically provides a no-argument constructor, called the default constructor