aspose file tools*
The moose likes Beginning Java and the fly likes Default values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Default values" Watch "Default values" New topic

Default values

geet kaur
Ranch Hand

Joined: Sep 03, 2008
Posts: 78
guys i have a problem in this code....see both the print statements are giving the same result...shouldnt't the instance variables be assigned their default values first???please help..
Henry Wong

Joined: Sep 28, 2004
Posts: 18745

This line prints the parameters to the constructor -- not the instance variables.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
geet kaur
Ranch Hand

Joined: Sep 03, 2008
Posts: 78
oh i got it ...thanks!!!
It is sorta covered in the JavaRanch Style Guide.
subject: Default values