Why all programming languages have main as a execution
starting point?

Answer Posted / balamurugan

in java jvm only understand the class which contain main
method so, jvm understand that main method should be the
starting point in java

in other cases compiler need starting point in every
program to execute a program sync to execute so we need
main method for every program

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does variable declaration allocate memory?

776


What is the advantage of functional interface in java 8?

745


What is the difference between class & structure?

770


What is a double?

810


Explain the difference between an Interface and an Abstract class?

850


What does 0 mean in boolean?

735


What is the importance of static variable?

783


What are synchronized blocks in java?

784


State the main difference between c++ and java?

777


Is 9 a prime number?

640


How do you sort arraylist in descending order?

756


What are the two types of java?

746


Difference between string s= new string (); and string s = "abv";?

969


How do you override a method in java?

732


What is the difference between multiple processes and multiple threads?

780