What will happen if we declare don’t declare the main as static?
Answer Posted / hr@tgksolutions.com
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
Can we override constructor?
What is string [] java?
How we can execute any code even before main method?
What are JVM.JRE, J2EE, JNI?
What will happen if static modifier is removed from the signature of the main method?
Can an object be null?
How are destructors defined in java?
Can we access instance variables within static methods ?
Does garbage collection occur in permanent generation space in jvm?
Should you use singleton pattern?
What happens when heap memory is full?
Which sorting algorithm is in place?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What is anagram number?
What is the difference between a checked and an unchecked exception?