Multiple choice

What will be the file name for the following program? class Student { public static void main(String args[]) { System.out.println(“Hello Student”); } }

  1. Any file name

  2. Student.class

  3. Student.java

  4. Student

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

The file name should be same as the class name containing the main method with an extension “.java”.