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 Introducing JavaFX 8 Programming this week in the JavaFX 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
I agree. Here's the link:
subject: calling main
It's not a secret anymore!