File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: calling main
It's not a secret anymore!