This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes when costructor is call 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 » Java in General
Bookmark "when costructor is call" Watch "when costructor is call" New topic

when costructor is call


Joined: Oct 12, 2001
Posts: 7
I have some problem about constructor that if i create a object of any other class in my main method , and that class has already create a object of third class before it's constructor ,
what out will be displayed when i call a constructor of that class( that class has not default contructor ).

jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Not sure if I understand the question. Could you perhaps either further clarify your problem, or show some code that will help others understand the problem you are having?
Also, please re-register with a name that meets the JavaRanch naming conventions. JavaRanch requires a user name in the form "First name" + space + "Last name".
Don't get me started about those stupid light bulbs.
subject: when costructor is call