0

ways to run java program without main function ?

is it possible to run without main

28th Aug 2016, 7:42 PM
Yatin Arora
Yatin Arora - avatar
4 Réponses
0
no...y because every Java programs have method to use the results
28th Aug 2016, 8:14 PM
Sand Hani
Sand Hani - avatar
0
oops sorry .. but a java prog. can run without main funct. :)
28th Aug 2016, 8:20 PM
Yatin Arora
Yatin Arora - avatar
- 1
using static block
28th Aug 2016, 8:21 PM
Yatin Arora
Yatin Arora - avatar
- 1
using jdk version less than 1.7 you can run static { sop ("java"); System. exit (0); }
30th Aug 2016, 2:12 AM
sachin tomar
sachin tomar - avatar