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



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

Post New Answer

More Core Java Interview Questions

What do you mean by jjs in java8?

1 Answers  


What is a map in java?

1 Answers  


What are the four integer types supported by java?

1 Answers  


How to Create A Wapper Class in core Java and Why are Use in java?

2 Answers   Amdocs,


Where and how can you use a private constructor?

1 Answers  


Java run-time system generates What class of exceptions?

2 Answers   TCS,


How does hashset works in java?

1 Answers  


Have you worked on bits programming? examples?What is bit? How many bits are there in the byte?

1 Answers  


Why strings in java are called as immutable?

1 Answers  


What do you know about the garbate collector?

1 Answers  


What is the difference between the synchronized() & static synchronized()?

2 Answers   HP, SparkTG,


What is Unicast and Multicast object? Where we will use?

1 Answers   Scope International,


Categories