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
Question
Question
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
bagmita
New Member
Join Date:
Jan 2007
Posts:
8
#1
Question
Jan 10 '07, 04:03 AM
Can a static method be accessed using the this operator?
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#2
Jan 10 '07, 05:14 AM
Originally posted by
bagmita
Can a static method be accessed using the this operator?
Yes they can. Test it on a compiler. Non-static variables are the ones that are not available in static contexts.
Comment
Post
Cancel
bagmita
New Member
Join Date:
Jan 2007
Posts:
8
#3
Jan 10 '07, 12:45 PM
Originally posted by
r035198x
Yes they can. Test it on a compiler. Non-static variables are the ones that are not available in static contexts.
Thannq!I tried out and its compiling fine.
Comment
Post
Cancel
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#4
Jan 10 '07, 12:53 PM
Originally posted by
bagmita
Thannq!I tried out and its compiling fine.
Part of the classes
here
describe the use of the static keyword.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment