This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes calling main Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "calling main" Watch "calling main" New topic

calling main

Appanid Pathak

Joined: Jan 18, 2006
Posts: 1
why can we not call a main method using an object as any other static method
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

We can.

What makes you think otherwise?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I think the OP was referring to something like

I'm certain that you can do this. Why do you think that you can't?


Java API Documentation
The Java Tutorial
It is sorta covered in the JavaRanch Style Guide.
subject: calling main
Similar Threads
How to call a stand alone class from WAS???
First GUI program
Help with First Java Code - Party.Java
No such method? Kathy & Bert's book p. 78-79
Garbage collection problem