adplus-dvertising
frame-decoration

Question

Choose the correct way of receiving command-line arguments with in the MAIN method in Java?

a.

public static void main(String[] args)
{

}

b.

public static void main(String args[])
{

}

c.

public static void main(String anyName[])
{

}

d.

All of the above

Posted under Java Programming

Answer: (d).All of the above

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose the correct way of receiving command-line arguments with in the MAIN method in Java?