This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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://aspose.com/file-tools
 
subject: thread without main( String arg[])
 
It's not a secret anymore!