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

Answer Posted / babu

In all programming languages compilation starts from one
specific point and they need it one specific point for
excecution so we have main().

In java we can excute the program without main but we need
a main method for compilation.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by object?

784


What does %4d mean in java?

1211


Is java a security risk?

795


Why declare Main() method as a static in java ?

811


Explain about transient variables in java?

845


In a container there are 5 components. I want to display all the component names, how will you do that?

1846


Do I need java for windows 10?

759


How many types of classes are there in java?

777


How can I debug the Java security exceptions and AccessControlExceptions?

904


What are the methods available in a class?

823


How many types of array are there?

736


make a method which any number and any type of argument and print sum of that arguments.....

1586


Which eclipse is best for java?

735


What is object english?

806


What is multi-catch block in java?

818