+ 1
Can we make changes in main method in JAVA.
class Solo { static public void main(String[] solo) { // Is this valid main method ? } }
2 Respuestas
+ 6
Yes you can replace position of public and static with each other.
The string array can have any valid name.
It can be (String...a) also.
You can even add final keyword to the main method and it would still work.
0
Yes it's your own program so you write your own code there.