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
posted
0
AnyApplet . . . . 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.