0

Can we write code in java without main function???

If yes then then explain it by example

29th Apr 2017, 6:00 AM
shukrayani
shukrayani - avatar
2 Answers
+ 1
you can write frameworks. like a math library for approximations or graph algorithms or whatever you want to provide so others or yourself can use. the main function is the starting point of every executable code. therefore if you want to calculate something then no. you need a main function. my question to you now : why even ask? what problem do you have right now providing an entry point?
29th Apr 2017, 6:05 AM
Petja Boigk
Petja Boigk - avatar