An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
February 21, 2022 07:05 am GMT
Original Link: https://dev.to/souravsingpardeshi/1main-method-in-java-38bc
1.Main Method in java
public class main{ public static void main(String[] args) { //code }}
entry level is main method.
this method is public so it can be easily found by jvm.
void because not expected to return anything.
static so no need to create object of class for execution.
String[] args are array of string as arguments for code.
Original Link: https://dev.to/souravsingpardeshi/1main-method-in-java-38bc
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To