What will happen if we declare don’t declare the main as static?



What will happen if we declare don’t declare the main as static?..

Answer / nashiinformaticssolutions

Without utilizing static and without encountering any issues, we may declare the main method. However, the primary method will not be regarded as the program's or application's entry point.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens?

1 Answers   Flextronics,


Is vector synchronized in java?

0 Answers  


Why we should declare the variables as static and final in interfaces?

1 Answers  


What if static is removed from main method?

0 Answers  


give an example for encapsulation?

0 Answers   Aspire,






Difference between String & StringBuffer

16 Answers   IBM, Infosys, Tech Mahindra, Wipro,


what is server side caching?

0 Answers   AIG,


What is Servlet?

8 Answers  


What is the arraylist in java?

0 Answers  


What are abstract classes and anonymous classes?

0 Answers   Flextronics, Thomson Reuters, Virtusa,


Features of JAVA ? In which version of java synchronizedXXX() methods are included in Collections class.

1 Answers   NIIT,


Why do we need public static void main(String args[]) method in Java...?

1 Answers  


Categories