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


Please Help Members By Posting Answers For Below Questions

What is the public method modifier?

739


What function extracts specified characters from a string?

754


What is difference between null and void?

728


What is meant by polymorphism?

767


What is jrmp?

733


What is a nested class?

818


Describe the term diamond problem.

763


What is the memory leak in java?

739


What are the Class Libraries ?

791


What are the actions that can occur when a thread enters blocked state?

809


What is lossy conversion in java?

810


What are thread priorities and importance of thread priorities in java?

815


What are the limitations of procedural programming approach?

747


What are the states of thread in java?

707


What is join () in java?

727