What will happen if we declare don’t declare the main as static?
Answer Posted / glibwaresoftsolutions
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
Why javac is not recognized?
What is boolean keyword in java?
Why vector is used in java?
Can we override private methods?
Which package is always imported by default?
When is the arraystoreexception thrown?
Can we have return statement in finally clause? What will happen?
Why java does not support pointers?
Explain the scope or life time of class variables or static variables?
Which is faster set or list in java?
What are inner classes or non static nested classes in java?
What do you understand by copy constructor in java?
How to make object serializable in java?
What is the lifetime and scope of a variable?
What is the difference between menuitem and checkboxmenu item?