Can we keep a different name for the java class name and java file name?

4. Can we keep a different name for the java class name and java file name?

  1. Yes
  2. No

Answer: A) Yes

Explanation:

Yes, we can keep different names for java filename and java class name if and only if the class is not public.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.