in this statement public static void main ( ) , what is the role of void.
Answers
Answered by
0
Answer:
sorry don't know.........
Answered by
2
Every word in the public static void main statement has got a meaning to the JVM. Public: It is an Access modifier, which specifies from where and who can access the method. ... As main() method doesn't return anything, its return type is void. As soon as the main() method terminates, the java program terminates too.
Similar questions
World Languages,
2 months ago
Science,
2 months ago
English,
6 months ago
Math,
6 months ago
English,
11 months ago