In Java why we write public static void main(String args[])
why not main()?
Answer Posted / lotus
as compiler needs to enter inside a program to compile so
public is used and static is used to help the main method
to be invoked without an object.
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
What is the biggest integer?
What is parsing in grammar?
What is concurrent hashmap and its features?
What is a string token?
What is a flag and how does it work?
What is the difference between form & report?
Java.util.regex consists of which classes?
What are JVM.JRE, J2EE, JNI?
What is parameter example?
According to java operator precedence, which operator is considered to be with highest precedence?
What is a nullable field?
how many types of Inheritance?
When will you define a method as static?
What are abstract methods in java?
why an outer class cannot be declared as private?