1.

Which of the following is correct error when loading JAR file with duplicate name?(a) java.io.NullPointerException(b) java.lang.ClassNotFound(c) java.lang.ClassFormatError(d) java.lang.DuplicateClassErrorThe question was posed to me in an international level competition.I'm obligated to ask this question of Java Beans topic in chapter Java Beans & JDBC of Java

Answer»

Correct option is (c) java.lang.ClassFormatError

To ELABORATE: 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.



Discussion

No Comment Found

Related InterviewSolutions