main method is a standard method used by JVM to execute any java program(Java SE). - Can we declared main method with final m

Q

main method is a standard method used by JVM to execute any java program(Java SE). - Can we declared main method with final modifier?

✍: Guest

A

Yes we can define main method with final modifier.
package instanceofjava;
public MainDemo{
public static final void main(String [] args){

}
}

2015-07-01, 541👍, 0💬