Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

Q: What if the main method is declared as private?

Add comment
Views: 1630
Votes: 3
Comments: 0
A: The program compiles properly but at runtime it will give "Main method not public." message. 
  
Others in this Category
document Are you aware of any major JMS products available in the market?
document Q: What is the purpose of garbage collection in Java, and when is it used?
document If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?
document What is the difference between declaring a variable and defining a variable?
document What happens if remove( ) is never invoked on a session bean?
document Difference between forward and sendRedirect?
document Q: What is the difference between Exception & RuntimeException in Java?
document What is an enumeration?
document Can a vector contain heterogenous objects?
document What is the purpose of garbage collection in Java, and when is it used?
» More articles



RSS