What will happen if static modifier is removed from the signature of the main method?
Answer / Krishna Kant
If the static modifier is removed from the main method, it can no longer be a static method and must be declared inside an instance of a class. Without a static main method, Java cannot launch the application.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by jjs in java8?
What is a map in java?
What are the four integer types supported by java?
How to Create A Wapper Class in core Java and Why are Use in java?
Where and how can you use a private constructor?
Java run-time system generates What class of exceptions?
How does hashset works in java?
Have you worked on bits programming? examples?What is bit? How many bits are there in the byte?
Why strings in java are called as immutable?
What do you know about the garbate collector?
What is the difference between the synchronized() & static synchronized()?
What is Unicast and Multicast object? Where we will use?
1 Answers Scope International,