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
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
a small doubt
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
charitra
New Member
Join Date:
Mar 2007
Posts:
1
#1
a small doubt
Apr 25 '07, 11:37 AM
main() inspite of being static can call other non static functions.How come?
JosAH
Recognized Expert
MVP
Join Date:
Mar 2007
Posts:
11453
#2
Apr 25 '07, 11:53 AM
Originally posted by
charitra
main() inspite of being static can call other non static functions.How come?
No it can not. In order to call any non-static method you first need an object
to invoke it on. The main() method is no exception to this rule.
kind regards,
Jos
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment