Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Can an application have multiple classes having main method?
Can an application have multiple classes having main method?
✍: Guest
Yes it is possible. While starting the application we mention the class name to be run. The JVM will look for the Main method only in the class whose name you have mentioned. Hence there is not conflict amongst the multiple classes having main method.
2013-05-08, 2356👍, 0💬
Popular Posts:
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...
What is Concern in AOP? gA concern is a particular goal, concept, or area of interesth There are m...
How To Recover a Dropped Index? - Oracle DBA FAQ - Managing Oracle Table Indexes If you have the rec...
What is cross page posting? By default, button controls in ASP.NET pages post back to the same page ...
How To Give a User Read-Only Access to a Database? - MySQL FAQs - Managing User Accounts and Access ...