Explore topic-wise MCQs in Advanced Java.

This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Advanced Java knowledge and support exam preparation. Choose a topic below to get started.

1.

How to specify autowiring by name?

A. @Qualifier
B. @Type
C. @Constructor
D. @Name
Answer» B. @Type
2.

Which attribute is used to specify destroy method?

A. destroy
B. destroy-method
C. destruction
D. destruction-method
Answer» C. destruction
3.

Which attribute is used to specify initialization method?

A. init
B. init-method
C. initialization
D. initialization-method
Answer» C. initialization
4.

What is the attribute of java bean to specify scope of bean to have single instance per Spring IOC?

A. prototype
B. singleton
C. request
D. session
Answer» C. request
5.

Java Beans are extremely secured?

A. True
B. False
Answer» C.
6.

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.DuplicateClassError
Answer» D. java.lang.DuplicateClassError
7.

Which of the following is not true about Java beans?

A. Implements java.io.Serializable interface
B. Extends java.io.Serializable class
C. Provides no argument constructor
D. Provides setter and getter methods for its properties
Answer» C. Provides no argument constructor
8.

Which of the following is not an Enterprise Beans type?

A. Doubleton
B. Singleton
C. Stateful
D. Stateless
Answer» B. Singleton
9.

HOW_TO_SPECIFY_AUTOWIRING_BY_NAME??$

A. @Qualifier
B. @Type
C. @Constructor
D. @Name
Answer» B. @Type
10.

Which of the following is not a feature of Beans?

A. Introspection
B. Events
C. Persistence
D. Serialization
Answer» E.
11.

Which file separator should be used by MANIFEST file?

A. /
B. \
C. –
D. //
Answer» B. \