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 |
Give a brief description of java socket programming?
Name the methods that used to get and set the text label displayed by a Buttonobject?
Explain the meaning of java applet.
Are there any tools available in java to create reports?
State some situations where exceptions may arise in java?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
How is a variable stored in memory?
all are saying java doesn't support multiple inheritance but by default Object class is super class for all the user defined classes and we can extend atmost one class so each class can extend more than one class so java supports multiple inheritance?i am confused with this,pls any one explain me.
List java api that supports threads?
why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?
How does map works in java?
Which is easier .net or java?