1.

Which of this method is given parameter via command line arguments?(a) main()(b) recursive() method(c) Any method(d) System defined methodsThe question was asked in an interview.My enquiry is from Command Line Arguments in chapter Classes and Methods of Java

Answer»

Correct option is (a) main()

To EXPLAIN: Only main() method can be given PARAMETERS VIA using COMMAND line arguments.



Discussion

No Comment Found

Related InterviewSolutions