Why all programming languages have main as a execution
Answers were Sorted based on User's Feedback
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|
Can we create our own wrapper class in java?
What are Normalization Rules? Define Normalization?
How to restrict a member of a class from inheriting by its sub classes?
What are different types of references?
What are uses of Hash Code?
What is initial size of arraylist in java?
Why convert an applet to an application?
How does the java compiler work?
What are java threads?
Does treeset use compareto?
How can we get one Interface methods whit out using implementation of interface
What does compareto () do in java?