**when we write a program in java main() will be executed first why?**
sainaleni.guttula 0 Newbie Poster
Recommended Answers
Jump to Postalso, that is not always the case. tons of web-apps are written in Java, and they don't start with (don't even have) a main method.
the main method is for desktop and stand alone applications the entry point for your application. it's a bit the same as asking: "when someone …
All 2 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
stultuske 1,116 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.