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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between operator overloading and function overloading

693


What is %02d?

643


What is api data?

637


How to make object serializable in java?

637


What is singleton service?

587






What about interthread communication and how it takes place in java?

654


What is a nested class?

681


Explain the difference between abstract class and interface in java?

628


What is the differences between c++ and java? Explain

672


What are data types in oop?

658


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

607


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1123


What's the purpose of static methods and static variables?

678


What is the association?

651


Can we convert list to set in java?

601