In Java why we write public static void main(String args[])
why not main()?
Answer Posted / sreenu karampudi
public static void main(String args[])
When the class get loaded, it will execute the static main
() method. void as it does not return anything.
| Is This Answer Correct ? | 15 Yes | 49 No |
Post New Answer View All Answers
Does collectionutils isempty check for null?
How can you set an applet’s height and width as a percentage?
What is the java project architecture?
Name few java util classes introduced with java 8 ?
Can a class be final?
What is a null class?
Is java call by value?
What do you mean by stream pipelining in java 8?
What is difference between iterator access and index access?
What are the loops in java?
What is the difference between hashmap and hashtable? What is an interface?
What is difference between final and finally in java?
What is private static in java?
What is flag in python?
Explain about the select method with an example?