Home »
MCQs »
Java MCQs
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?
- Yes
- 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.