Java Basic
- Which of the following is correct error when loading JAR file with duplicate name?
-
View Hint View Answer Discuss in Forum
NA
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.
- Which file separator should be used by MANIFEST file?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
MANIFEST file uses classes using / file separator.
- Which of the following is not true about Java beans?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
java.io.Serializable is not a class. Instead it is an interface. Hence it cannot be extended.
- Which of the following is not an Enterprise Beans type?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Stateful, Stateless and Singleton are session beans.
- What does Liskov substitution principle specify?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Liskov substitution principle states that Objects in a program should be replaceable with instances of their sub types without altering the correctness of that program.