How many arguments can be passed to main ()?



How many arguments can be passed to main ()?..

Answer / Vinod Singh

The main() method in Java can receive a maximum of two arguments: the first is an array of strings (String[] args), representing command-line arguments, and the second is ignored.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What does provide mean construction?

1 Answers  


Can a boolean be null java?

1 Answers  


What are different exception types exceptions available in java ?

1 Answers  


How to run a JAR file through command prompt?

1 Answers  


What is the history of java?

1 Answers  


What do you understand by synchronization?

1 Answers  


What is codebase?

1 Answers  


What is difference between overloading and overriding in java?

1 Answers  


Will minecraft java be discontinued?

1 Answers  


When do you call copy constructor?

1 Answers   Tavant Technologies, Virtusa,


How do you convert an int to a string in java?

1 Answers  


what is the difference between equals method and ==

17 Answers   IBM, Professional Access, TCS,


Categories