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 |
what is heap memory?
0 Answers Tavant Technologies, Zensar,
What is a java applet? What is an interface?
Can we use a switch statement with strings?
Is there is any error if you have multiple main methods in the same class?
What is the console in java?
Name few java util classes introduced with java 8 ?
What type of language is java?
Highest level event class of the event-delegation model?
Explain Public static void main?
What does those terms actually mean included in the j.d.k i.6?
How is java created?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).