aspose file tools*
The moose likes Beginning Java and the fly likes about main method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "about main method" Watch "about main method" New topic
Author

about main method

Malaya Behura
Greenhorn

Joined: Feb 17, 2006
Posts: 2
Hi everybody
Can a main() method of class be invoked in another class?
if so how . give an example to support ur answer.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Why not try and see if you can do it? Invoke it like any other static method.


There is no emoticon for what I am feeling!
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Malaya Behura:
...give an example to support ur answer.

When you write some code to test this, you will have an example to support your answer. :roll:


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Originally posted by marc weber:

When you write some code to test this, you will have an example to support your answer. :roll:


No ur answer.


[Jess in Action][AskingGoodQuestions]
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Originally posted by Ernest Friedman-Hill:

No ur answer.


Ah yes, Ur, birthplace of Abraham.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about main method