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
Give a brief description of java socket programming?
What are autoboxing and unboxing? When does it occur?
What is the exception hierarchy in java?
What is finalize() function in java?
What is the use of jtable?
What is a ?
What is thread life cycle in java?
When will you define a method as static in Java?
How a string is stored in memory?
Is string a class?
What do you mean Abstraction in java?
What is the exact difference in between unicast and multicast object? Where we will use?
Does java support function overloading, pointers, structures, unions or linked lists?
What are use cases?
What is jit compiler in java?