Why all programming languages have main as a execution
starting point?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Explain the difference between arraylist and linkedlist in java?
Explain about the security aspect of java?
What do you mean by the term transient?
What is meant by event handling in SAX parser?
What is role of void keyword in declaring functions?
What is the difference between DataInputStream and BufferedReader
What is the difference between array and array list in java?
What is the new line character?
Describe inheritance as applied to java?
How to sort an unsorted array in java?
printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ?
Explain what do you mean by functional overloading in java?