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 the latest java version?
What does t in java mean?
Does java have extension methods?
How can the checkbox class be used to create a radio button?
In a container there are 5 components. I want to display all the component names, how will you do that?
What does singleton class mean?
What is the difference between integer parseint and integer valueof?
Is vector thread safe in java?
I don’t want my class to be inherited by any other class. What should I do?
what are abstract functions?
What is the use of private static?
What is skeleton and stub?
What is the function of java?
What are the data types supported by java? What is autoboxing and unboxing?
What are meta-annotations?