This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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


Win a copy of Elasticsearch in Action this week in the Big Data forum!
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
 
I agree. Here's the link: http://kickstarter.com/rocket-mass-heater
 
subject: thread without main( String arg[])