Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
Java
Is it safe to call a instance method from constructor?
Is it safe to call a instance method from constructor?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
dmjpro
Top Contributor
Join Date:
Jan 2007
Posts:
2476
#1
Is it safe to call a instance method from constructor?
May 26 '10, 01:59 PM
Is it safe to call a instance method from constructor?
Dheeraj Joshi
Recognized Expert
Top Contributor
Join Date:
Jul 2009
Posts:
1129
#2
May 26 '10, 02:12 PM
You can call an instance method. I think no harm.
Regards
Dheeraj Joshi
Comment
Post
Cancel
jkmyoung
Recognized Expert
Top Contributor
Join Date:
Mar 2006
Posts:
2057
#3
May 27 '10, 12:43 PM
As long as the method doesn't try to use any member that you haven't yet initalized it should be ok.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment