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
Define packages in java?
How infinite loop is declared?
What flag up means?
How to compare two strings in java program?
What are the methods used to implement for the key object in the hash map?
Differentiate between nested and inner class in java.
Explain the difference between private, public, package and protected in java?
Can we declare an interface as final?
How to create a fecelet view?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is fail first in java?
What is a generic code?
What is thread life cycle?
Does java support multiple inheritances?
What is contract between hashcode and equal method?