-
Which of the following is correct error when loading JAR file with duplicate name?
-
- java.lang.ClassNotFound
- java.io.NullPointerException
- java.lang.DuplicateClassError
- java.lang.ClassFormatError
- None of these
Correct Option: D
java.lang.ClassFormatError: Duplicate Name error is thrown when .class file in the JAR contains a class whose class name is different from the expected name.