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 a feature of Beans?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Serialization is not the feature of Java Beans. Introspection, Customization, Events, Properties and Persistence are the features.
- 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.