Which of the following signatures are valid for the main() method entry point of an application?

  1. public static void main()

  2. public static void main(String arg[])

  3. public void main(String [] arg))

  4. public static void main(String[] args))

  5. public static int main(String [] arg))


Correct Option: B,D

Find more quizzes: