What is the significance of method main( )?
Answers
Answered by
2
Answer:
In any Java program, the main() method is the starting point from where compiler starts program execution. So, the compiler needs to call the main() method. If the main() is allowed to be non-static, then while calling the main() method JVM has to instantiate its class
Answered by
0
ᵗʰᵉ ᵐᵃᶤᶰ ᵐᵉᵗʰᵒᵈ ᶤˢ ᵗʰᵉ ᵉᶰᵗʳʸ ᵖᵒᶤᶰᵗ ᵒᶠ ʸᵒᵘʳ ʲᵃᵛᵃ ᵃᵖᵖ. ʷʰᵉᶰᵉᵛᵉʳ ʸᵒᵘ ᵉˣᵉᶜᵘᵗᵉ ᵃ ᵖʳᵒᵍʳᵃᵐ, ᵗʰᵉ ᵐᵃᶤᶰ ᶤˢ ᵗʰᵉ ᶠᶤʳˢᵗ ᶠᵘᶰᶜᵗᶤᵒᶰ ᵗᵒ ᵇᵉ ᵉˣᵉᶜᵘᵗᵉᵈ. ʸᵒᵘ ᶜᵃᶰ ᶜᵃˡˡ ᵒᵗʰᵉʳ ᶠᵘᶰᶜᵗᶤᵒᶰˢ ᶠʳᵒᵐ ᵐᵃᶤᶰ ᵗᵒ ᵉˣᵉᶜᵘᵗᵉ ᵗʰᵉᵐ. ᶤᶰ ᵃ ˢᵗᵃᶰᵈᵃʳᵈ ᵃᵖᵖ, ᵗʰᵉʳᵉ ᶤˢ ᵒᶰᵉ ᵐᵃᶤᶰ ᶠᵘᶰᶜᵗᶤᵒᶰ ʷʰᶤᶜʰ ᵘˢᵉˢ ᵒᵗʰᵉʳ ᶜˡᵃˢˢᵉˢ' ᶤᶰˢᵗᵃᶰᶜᵉˢ ᵗᵒ ᶠᵘᶰᶜᵗᶤᵒᶰ.
Similar questions