What if the static modifier is removed from the signature of the main method?



What if the static modifier is removed from the signature of the main method?..

Answer / Dhiraj Singh

If the static modifier is removed from the signature of the main method, you will not be able to create an instance of your class and run it directly as a standalone Java program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

What is a modular application? What does module-relative mean?

1 Answers  


What value does readline() return when it has reached the end of a file?

1 Answers  


can i call multipule form beans in Action class?

1 Answers   Wipro,


How has the sandbox changed with Java 2?

2 Answers  


If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?

8 Answers   HeadStrong,


what is a portable component?

1 Answers  


Why JDBC has introduced

4 Answers  


What are the sequence of steps to write pub or sub model kind of application?

1 Answers   TCS,


What is the relationship between the canvas class and the graphics class?

1 Answers  


what is JTS?

1 Answers  


what is the use of State Factories?

1 Answers  


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

1 Answers   Ducat,


Categories