Multiple choice technology platforms and products

We have a public class with a proper main method. Which of the following options helps us in supplying the runtime arguments?

  1. Right click on the class and select ‘Run as > Java Application’

  2. Right click on the class and select ‘Run’

  3. It is not possible in Eclipse.

  4. All of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The standard way to supply runtime arguments in Eclipse is through the Run menu or Run Configurations. Option A (Run as Java Application) uses default/previous settings without prompting, while option B (Run) opens the configuration dialog where arguments can be specified before execution.