Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Answers were Sorted based on User's Feedback



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

Answer / uday kiran divvela

All the languages follows a centralized design patter, that
is they must start program execution from main() method
onwards.
But in java programing language without main() method also
we can execute the programs.

Is This Answer Correct ?    6 Yes 2 No

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

Answer / 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

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

Answer / srikanth reddy

from main()method where we are creating objects and load the
class and calling methods of that class

Is This Answer Correct ?    0 Yes 0 No

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

Answer / 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



More Core Java Interview Questions

Can we create our own wrapper class in java?

0 Answers  


What are Normalization Rules? Define Normalization?

0 Answers  


How to restrict a member of a class from inheriting by its sub classes?

0 Answers  


What are different types of references?

0 Answers  


What are uses of Hash Code?

2 Answers   Cognizant,






What is initial size of arraylist in java?

0 Answers  


Why convert an applet to an application?

0 Answers  


How does the java compiler work?

0 Answers  


What are java threads?

0 Answers  


Does treeset use compareto?

0 Answers  


How can we get one Interface methods whit out using implementation of interface

1 Answers   Oracle,


What does compareto () do in java?

0 Answers  






Categories