Aakash Goel wrote:but why cant I declare it like this:
What is wrong with this?
This is a valid signature for a method.
However, to run your program you will need a main method with the (String args) parameter as this is the specific method signature that the JVM looks for when running your program. This is how Java itself is written, you can't change it.
You can call your main() method from your main(String args) method (if you really want to).