Answer Posted / nashiinformaticssolutions
Java's main() function is static by default, allowing the compiler to call it either before or after creating a class object. The main () function is where the compiler begins programme execution in every Java programme. Thus, the main () method needs to be called by the compiler. If the main () method is permitted to be non-static, the JVM must instantiate its class when calling the function.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a void in java?
What is a lightweight component?
What are implicit objects in java?
Explain the JDB in depth & command line.
How can I right-justify a string?
Is it possible to compare various strings with the help of == operator?
What does flagged out mean?
What is the numeric promotion?
Is there any tag in htm to upload and download files?
Can we catch more than one exception in a single catch block?
Define an enumeration?
What are the types of inner classes (non-static nested class) used in java?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What is the use of static class?
What is method and methodology?