In Java why we write public static void main(String args[])
why not main()?
Answer Posted / ravi
static because once the class is loaded the main() will be
invoked first.
void because main()is not returning any value.
| Is This Answer Correct ? | 228 Yes | 99 No |
Post New Answer View All Answers
Give some features of interface?
What is arrays aslist in java?
What are synchronized methods and synchronized statements in java programming?
Why deletion in linkedlist is fast than arraylist?
What is a nullable field?
What is unmodifiable list in java?
How to set the permissions to a file in java?
Where are variables stored?
What are the different types of inner classes?
What are the benefits of operations?
Define the term string pool?
What Is Composition?
Is Java a dying language?
How many types of methods are there?
How can we pass argument to a function by reference instead of pass by value?