aspose file tools*
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
 
 
subject: thread without main( String arg[])