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 throw keyword in java?
What is object cloning in Java?
How do you define a singleton class?
How do I get the | symbol on my keyboard?
Does importing a package imports its sub-packages as well in java?
Can a class have multiple constructors?
How many return statement are allowed in a function?
Is cout buffered?
What are abstract methods in java?
What language is java written?
What is comparable and comparator interface? List their differences
Break statement can be used as labels in java?
How to sort an array from smallest to largest java?
What is meant by 'bit masking' in java?
What is the synonym of procedure?