+ 1

What is -public , static , void , main, in java language?? I MEAN WHAT ARE THEIR MEANINGS

5th Aug 2017, 12:59 PM
Avash Mitra
Avash Mitra - avatar
2 Answers
+ 5
"main" is the entry point of any java program. "void" usually the return-type of a method, in this case none. "static" means you must not initialize an object first. and finally "public" means this method can be called from outside of the scope.
5th Aug 2017, 1:31 PM
Matthias W
+ 1
thnx for answer
5th Aug 2017, 1:39 PM
Avash Mitra
Avash Mitra - avatar