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
What is the public method modifier?
What function extracts specified characters from a string?
What is difference between null and void?
What is meant by polymorphism?
What is jrmp?
What is a nested class?
Describe the term diamond problem.
What is the memory leak in java?
What are the Class Libraries ?
What are the actions that can occur when a thread enters blocked state?
What is lossy conversion in java?
What are thread priorities and importance of thread priorities in java?
What are the limitations of procedural programming approach?
What are the states of thread in java?
What is join () in java?