- #1
josephaswin
- 1
- 0
hi,
i know there are 7 ways to declare main in java
as
1.public static void main(String args[])
2.static public void main(String args[])
but what are the other ways?
but only change first two keywords
i.e. public and static
and use the required keywords.
this is the question given to me.
i know there are 7 ways to declare main in java
as
1.public static void main(String args[])
2.static public void main(String args[])
but what are the other ways?
but only change first two keywords
i.e. public and static
and use the required keywords.
this is the question given to me.