jack worthing
,
Greenhorn
if static methods are restricted to call only staic methods and data,
how can main() be static and yet call any kind of methods or data.
Chandra Bhatt
,
Ranch Hand
Hi Jack,
Welcome to JavaRanch!!!
How do you find your statement to be correct?
Can you come up with an example?
Static method can't access non-static method or instance member, because
there is no "this" reference in it. The same applies to main() method also.