Multiple choice technology platforms and products

In the package Explorer, which of the following classes we can run directly?

  1. A public class which contains a main method with proper signature (Arguments, return types etc).

  2. We can run any classes

  3. Only those classes which have public no argument constructors.

  4. None of these

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

In Eclipse Package Explorer, you can directly run any class that has a properly defined main method. The main method must be public, static, void, and accept a String array as its parameter. Simply having a public class or constructor is not sufficient for direct execution.