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
Explain exception chaining in java?
What is methodological framework?
How to make a non daemon thread as daemon?
What is bubble sort in java?
Which keyword specify that a variable is effectively final ?
How many bytes is string in java?
Why is static used?
What does exclamation mean in java?
Which one of the following suits the description of a string better: derived or primitive?
What do you understand by the term polymorphism?
What is difference between float and double?
What is a Hash Table? What are the advantages of using a hash table?
what is the constructor and how many types of constructors are used in java?
How do we access static members in java?
What is java instanceof operator?