+ 1

Is it possible in Java to write a program which can be started without a main method?

16th Feb 2017, 8:57 PM
Hermann Set
Hermann Set - avatar
3 odpowiedzi
+ 2
No. All java programs need a main method to run. that being said you can write java libraries that don't require one but to use them you need the initial main method somewhere
16th Feb 2017, 9:31 PM
Jacob McKee
Jacob McKee - avatar
0
main is entry function. juse like start button.
16th Feb 2017, 11:01 PM
전현수
전현수 - avatar
0
It was possible until java 6. But not anymore
17th Feb 2017, 2:35 PM
rossi
rossi - avatar