Engineering Full Stack Apps with Java and JavaScript
What is the correct parameter specification for the standard main method?
Select 2 options
A. void B. String[ ] args C. Strings args[ ] D. String args E. String args[ ]
B, E
There is a no difference for args whether it is defined as String[] args or String args[]. However, there is an important difference in the way it is defined as illustrated by the following: 1. String[] sa1, sa2; Here, both - sa1 and sa2 are String arrays. 2. String sa1[], sa2; Here, only sa1 is a String array. sa2 is just a String.
Logged in users see lesser ads and get more features.
If you want to solve the questions together with the experts and understand the concepts better, please contact us using the contact form or WhatsApp numbers. Selected people get to do that without any additional charges.