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 difference between iterator and enumeration ?
Is string is a class in java?
Explain different ways of creating a thread?
What are untrusted applets?
What do you mean by formatting?
What is oop in java?
What is public static void main?
What is a parameter in matrices?
What is stringjoiner ?
What is the purpose of a default constructor?
What is serial version uid and its importance in java?
Can we have this () and super () together?
What do you mean by append?
Can a class be private or protected in java?
How will you reverse a singly-link list?