This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
reply mail to main doubt
Posted by shibu on April 11, 2001 at 6:24 AM
hello vamsi, as far as I know, main method can call only static methods Other methods from other classes can be accessed by creating an instance of the class in the main and calling the method Static mehtods from other classes can be accessed by just the .method in the main method U r accessing System.out.println in main() 'coz out is a static object of printwriter and can be called in the main() regards shibu
Replies:
|