why we write public static void main (String args[])
in core java plz explain briefly??????????????????
Answer Posted / sreenivas p
JVM looks for the main method(from where it starts
execution) with the same signature(public static void
main(String args[])) if it coud not find throws
NoSuchMethodError.
valid signatures are:
public static void man(String args[])
static public void main(String a[])
Invalid signatures
static void main()
public static main(String args[]) etc..[treats these
are all as general methods ]
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
Can you explain the final method modifier?
What is a return in java?
Can interface be private in java?
What is use of set in java?
What is diamond operator in java?
What is generic type?
Difference between static synchronization vs. Instance synchronization?
What does int [] mean in java?
What is thread safe singleton?
What is java basic concept?
What is java abstraction with example?
Why do we need wrapper classes?
What is the difference between method and means?
What are three types of loops in java?
What is object cloning in Java?