whats the use of static,void,public and main in java
plz explain each term
Answers
Answered by
1
Static : This keyword help us to execute this class or method without using any object.
Public : it is a Keyword which identify this method or function can access anywhere outside and inside in the class.
Void : void is a return type for the main function which is initiated for the main function.
Main () : it indicates to the compiler to convert your source code from place where curly braces open to where it closes.
Mark it as brainliest!!! If it helped u!!
Similar questions