Which of these are valid declarations of the main() method in order to start the execution of a Java application?

  1. static public void main(String[] args) { /* ... */ }

  2. public static int main(String[] args) { /* ... */ }

  3. public static void main(String args) { /* ... */ }

  4. public int main(Strings[] args, int argc) { /* ... */ }


Correct Option: A

Find more quizzes: