jQuery in Action, 3rd edition
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "thread without main( String arg[])" Watch "thread without main( String arg[])" New topic

thread without main( String arg[])

Marius BONG

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"

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
I agree. Here's the link: http://aspose.com/file-tools
subject: thread without main( String arg[])
It's not a secret anymore!