This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes thread without main( String arg[]) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "thread without main( String arg[])" Watch "thread without main( String arg[])" New topic
Author

thread without main( String arg[])

Marius BONG
Greenhorn

Joined: Dec 16, 2001
Posts: 13
can we run a program which content thread method without main method ? any examples ?
Thanks in advanced...
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Any Applet . . . . of course has no main().
But if you are talking applications - the JVM needs to know WHERE to start to decide which threads to invoke etc. therefore it NEEDS a main() to kick things off.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Have you checked out Aspose?
 
subject: thread without main( String arg[])
 
jQuery in Action, 3rd edition