A program’s main() method has a void return type.
In Core Java, the return type of a program’s main()
method is void
. The main()
method is the entry point of a Java program, and it is declared with the following signature:
java
public static void main(String[] args) {
// Program logic goes here
}
The void
keyword indicates that the main()
method does not return any value. The program’s execution starts from the main()
method, and it doesn’t return any value to the calling environment.