CCEE Previous Year July and Dec 2023 QPapers
CCEE Previous Year July and Dec 2023 QPapers
Of course. Here is a detailed breakdown of each question from the provided images, organized
by topic. Each answer includes a clear explanation for all options.
Question #1: How many ServletContext objects are available for an entire web
application?
Question #8: How is the dynamic interception of requests and responses to transform
the information done?
Question #10: Any client request to access resources in the WEB-INF/ directory must be
returned with...
prajwalpawar
● Explanation:
○ BAD_REQUEST: Incorrect. This is a 400 error, typically for malformed request
syntax.
○ SC_NOT_FOUND: Correct. The WEB-INF directory is a private, secure area.
The server is required to act as if resources inside it do not exist when requested
directly by a client, hence a 404 Not Found error.
○ SC_INTERNAL_SERVER_ERROR: Incorrect. This is a 500 error, indicating a
server-side code failure.
○ ESC_BAD_REQUEST: Incorrect. This is not a standard HTTP status code
constant.
●
Question #15: In Servlet 3.0 which of the given annotation is used to declare the
following class as a Servlet Component with the URL pattern will be "/hello"?
Question #16: Assume you have a servlet class... and needs to forward it to a servlet
accessible at the URL "processingservlet". Which step do you need to carry out before
you forward the request?
prajwalpawar
Question #18: Which of the following is not a valid attribute of the <jsp:useBean> Action
tag?
Question #26: Which of the following is the right sequence of stages in the JSP life
cycle?
prajwalpawar
● Correct Answer: java.util.Enumeration
● Explanation:
○ Array of Strings: Incorrect.
○ java.util.ArrayList: Incorrect. You would need to manually convert the result to an
ArrayList.
○ java.util.Enumeration: Correct. This is a legacy part of the Servlet API. The
method returns an Enumeration of String objects.
○ String: Incorrect. It returns a collection of names, not a single one.
●
Question #34: When it comes to the Initialization phase of the JSP life cycle, which of the
following is true?
● Correct Answer: When a container loads a JSP it invokes the jspInit() method before
servicing any requests.
● Explanation:
○ When a container loads a JSP it invokes the jspInit() method...: Correct. The
jspInit() method is called once after compilation but before the JSP handles its
first request. It's for one-time setup.
○ Container invokes _jspService() method during Initialization phase: Incorrect.
_jspService() is called during the Execution (or Servicing) phase for every
request.
○ Both of the above: Incorrect.
○ None of the above: Incorrect.
●
Question #40: Which of the following is not a valid JSP Action tag?
Topic: JDBC
Question #3: Which of these JDBC mechanisms allows us to define checkpoints for a
transaction?
prajwalpawar
● Explanation:
○ CheckPoint: Incorrect. This is a general database term for synchronizing data to
disk, not a JDBC transactional checkpoint.
○ CommitPoint: Incorrect. This is not a standard JDBC term.
○ Savepoint: Correct. A Savepoint is an object created within a transaction that
acts as a checkpoint to which you can later roll back, without nullifying the entire
transaction.
○ RollbackPoint: Incorrect. This is not a standard JDBC term.
●
● Correct Answer: All options except getConnection(String urls[]) are valid. The most
common is getConnection(String url, String user, String password).
● Explanation: The DriverManager class has several overloaded getConnection methods
to provide flexibility.
○ getConnection(String url, Properties info): Valid.
○ getConnection(String urls[]): Invalid. There is no such method in DriverManager.
○ getConnection(String url, String user, String password): Valid and very common.
○ getConnection(String url): Valid.
●
Question #11: Identify which of the following types of JDBC drivers makes use of the
database native protocol.
Question #12: Which of the following methods is best suited to call on a JDBC
connection object... where the same SQL statement needs to be executed frequently with
different parameters?
prajwalpawar
○ prepareStatement(): Correct. This is the exact purpose of PreparedStatement. It
pre-compiles the SQL for efficiency and uses ? placeholders for parameters,
preventing SQL injection.
○ prepareCall(): Incorrect. This is specifically for calling stored procedures.
○ nativeSQL(): Incorrect. This is for translating JDBC SQL into the database's
native SQL, not for execution.
●
Question #28: Assume we do not explicitly set a value for auto-commit... what is the
outcome?
Question #6: What is TRUE about the cascading and cascade mode attributes in JPA
Entities?
● Correct Answer: Cascade mode attributes can be specified for the association
annotations (like @OneToMany) in an entity
● Explanation:
○ Cascade mode attributes can be specified...: Correct. The cascade attribute
(e.g., cascade = CascadeType.ALL) is defined within relationship annotations like
@OneToMany.
○ The cascading direction is from the target entity to the source entity: Incorrect. It's
from the source (parent) to the target (child).
○ PERSIST, DELETE are the only valid cascading mode attributes: Incorrect.
MERGE, REFRESH, and ALL are also valid.
○ Cascading is not supported in JPA: Incorrect. It is a fundamental feature.
●
Question #13: Which level of cache is represented by the Hibernate Session object?
prajwalpawar
● Correct Answer: First Level Cache
● Explanation:
○ First Level Cache: Correct. The Session is the first-level cache. It is scoped to
the session, mandatory, and enabled by default.
○ Second Level Cache: Incorrect. This is an optional cache scoped to the
SessionFactory and shared across sessions.
○ Query Cache: Incorrect. This is a separate, optional cache for storing the results
of queries.
○ Database Cache: Incorrect. This refers to the database's own internal caching,
not Hibernate's.
●
Question #17: Which of the following annotations is used in JPA to link two tables
through a relation table?
Question #23: Which of the following annotations in JPA, is used to specify a primary key
- foreign key relation between two entities?
Question #24: Which of the following annotations is applied on the unique Id of an entity
to get its value generated?
prajwalpawar
○ @GeneratedValue: Correct. This annotation is used alongside @Id to specify
the strategy (e.g., IDENTITY, SEQUENCE) for automatically generating the
primary key value.
○ @Sequence: Incorrect. This is used to define a database sequence, often in
conjunction with @GeneratedValue(strategy=SEQUENCE).
●
Question #25: Which of the following statements is false about the Hibernate
SessionFactory?
Question #27: Choose the inheritance model, which is not available in Hibernate.
prajwalpawar
Question #35: In hibernate, _________ annotation is used to represent a primary key.
Question #39: ...which of the following is not a valid value for the hibernate.hbm2ddl.auto
property?
Question #2: In a SpringBoot application the class which has the main method, should be
annotated with...
Question #7: Which of the following annotations can be used for testing a Spring Boot
application, which creates the entire context without starting the server?
prajwalpawar
○ @SpringBootTest: Correct. This annotation loads the full application context. By
default (webEnvironment = MOCK), it does not start a real server.
○ @SpringBootIntegrationTest: Incorrect. This annotation does not exist.
●
Question #14: What dependency artifact Id must be added to see the secure actuators in
Spring Boot?
Question #21: Which of the following annotations is recommended for a partial update of
a resource in a Spring Boot REST controller?
Question #36: Complete the following aspect implementation for an around advice...
prajwalpawar
● Explanation: A @Pointcut defines a reusable expression that identifies join points
(method executions). The @Around advice then references this named pointcut to apply
its logic. The other options have the annotations reversed or use incorrect syntax
(expression(...)).
Question #37: Which of the following problems can be solved using Lookup Method
Injection in Spring?
Question #38: In Spring MVC _________ class works as the frontend controller.
Question #5: The ability to invoke a RESTful method multiple times without changing the
state of the server on subsequent invocations is known as:
prajwalpawar
Question #9: What is a POM file in a Maven project?
● Correct Answer: A file that stores the structure and dependencies for your Maven
project
● Explanation:
○ A file that contains the compiled bytecode...: Incorrect. This would be a .class file.
○ A package that stores resources...: Incorrect. Resources are stored in directories
like src/main/resources.
○ A file that points to the media resources...: Incorrect.
○ A file that stores the structure and dependencies...: Correct. The pom.xml
(Project Object Model) is the central configuration file in Maven.
●
Question #29: Which of the following is not a valid phase in the Maven default build
lifecycle?
● Correct Answer: The question is flawed. All listed are valid phases.
● Explanation: clean belongs to the clean lifecycle. validate, compile, and install belong to
the default lifecycle. All are valid Maven phases. If forced to choose the "odd one out",
clean is the most likely answer as it belongs to a different lifecycle than the others.
Question #31: How would you configure a RESTful URL parameter that supports a search
for a book based on its ID?
Question #32: Which of the following can be used to test APIs in a web service?
prajwalpawar
CCEE Question Paper Dec 2023
Of course. Here is a detailed, topic-wise breakdown of all the questions from the new set of
images, with clear explanations for each option.
Question #7 (Set 2): isErrorPage attribute is mandatory in the page directive of the JSP
which handles all the errors/exception generated:
prajwalpawar
○ false: Incorrect.
○ No such attribute for page directive: Incorrect. The attribute exists and is crucial.
○ No such page directive: Incorrect. The page directive is the most common JSP
directive.
●
Question #11 (Set 2): Given an HttpServletRequest... which code is more appropriate to
be inserted...?
Question #16 (Set 2): Which one is the correct order of phases in JSP life cycle?
prajwalpawar
● Explanation: As explained previously, the full cycle is Translation -> Compilation ->
Initialization -> Execution -> Cleanup.
○ Compilation, Initialization, Execution, Cleanup: Best available option. It places
the main stages in the correct relative order.
●
Question #28: The annotation used for declaring a servlet with multiple URL patterns
(e.g. /ABC, /XYZ) is:
● Correct Answer: This attribute gives information about URL calling the servlet, which
can be stored and analysed...
● Explanation: The Servlet specification defines several standard request attributes that
are set when an error occurs.
○ ...gives exact error message: Incorrect. This is the job of
javax.servlet.error.message.
○ ...gives information about exception type: Incorrect. This is the job of
javax.servlet.error.exception_type.
○ ...gives status code: Incorrect. This is the job of javax.servlet.error.status_code.
○ ...gives information about URL calling the servlet...: Correct. The
javax.servlet.error.request_uri attribute stores the URL of the original request that
caused the error.
●
prajwalpawar
○ iii. Servlets creates static web pages, Applets creates dynamic...: False. This is
reversed. Servlets create dynamic content, while applets are client-side
applications.
○ iv. Servlets can handle only a single request...: False. Servlets are designed to
handle many concurrent requests.
○ Since only i and ii are true, this is the correct choice.
●
prajwalpawar
● Explanation: The jspInit() method is defined in the JspPage interface (which servlets
generated from JSPs implement).
○ jspInit(HttpServletRequest request, HttpServletResponse response): Incorrect.
This looks like a service method signature.
○ jspInit(): Correct. It takes no arguments, just like a servlet's destroy() method.
○ jspInit(HttpServletRequest request, HttpServletResponse resp): Incorrect.
○ No such method exists in the API: Incorrect. It is a key lifecycle method.
●
Question #9 (Set 2): Which of the following is true about the detached state of a
persistent entity?
● Correct Answer: Once we close the Hibernate Session, the persistent instance will
become detached.
● Explanation:
○ Once we close the Hibernate Session...: Correct. An object becomes detached
when the session it was associated with is closed. It still has a database identity
but is no longer managed by Hibernate.
○ A new instance of a persistent class...: Incorrect. A new instance is transient.
○ You can make a transient instance detached...: Incorrect. You make a transient
instance persistent by associating it with a session.
○ None: Incorrect.
●
Question #10 (Set 2): Which one of the following is not an ID generating strategy using
@GeneratedValue annotation?
prajwalpawar
○ First Level Cache: Incorrect. The Session represents the first-level cache.
○ Second Level Cache: Correct. The SessionFactory holds the (optional)
second-level cache, which is shared across all sessions created by that factory.
○ Third Level Cache, Fourth Level Cache: Incorrect. These are not standard
Hibernate cache levels.
●
Question #15 (Set 2): For two transactions T1 and T2, T1 reads a field that has been
updated by T2 but not yet committed is called as:
Question #3 (Set 2): Method used to process a bean before initialization callback.
prajwalpawar
○ scope: Incorrect. Scope defines the bean's lifecycle, it doesn't process it.
○ postProcessAfterInitialization(): Incorrect. This is called after initialization
methods (like afterPropertiesSet or @PostConstruct).
○ postProcessBeforeInitialization(): Correct. This method from the
BeanPostProcessor interface is called after the bean is instantiated but before
any custom initialization callbacks are invoked.
○ Its own constructor: Incorrect. The constructor is called first, before any
post-processing.
●
● Correct Answer: can be avoided by providing the custom error controller class which
implements ErrorController
● Explanation: The "Whitelabel Error Page" is Spring Boot's default fallback error page.
○ can be avoided by providing the custom error controller...: Correct. You can
completely replace the Whitelabel page by creating your own controller that
implements the ErrorController interface and mapping it to /error.
○ can be avoided by using @GetMapping annotation: Incorrect. @GetMapping is
for normal request handling, not for global error handling.
○ can be avoided by using @EnableAutoConfiguration annotation: Incorrect. This
annotation enables the Whitelabel page, it doesn't avoid it.
○ Cannot be avoided: Incorrect. It is highly customizable.
●
Question #14 (Set 2): If the class is annotated with @Component Annotation:
● Correct Answer: the class is found during classpath scanning and creates the bean
● Explanation:
○ the class is found during classpath scanning and creates the bean: Correct. The
@Component annotation marks a class as a candidate for auto-detection. When
component scanning is enabled, Spring finds it and registers an instance of it as
a bean in the container.
○ ...and does not create the bean: Incorrect. It does create the bean.
○ enables autowiring for the class: Incorrect. @Component makes the class a
target for autowiring into, but @Autowired is what enables the injection itself.
○ disables autowiring for the class: Incorrect.
●
Question #19: A modularization of a concern which cuts across multiple classes is:
prajwalpawar
○ an Aspect: Correct. An aspect is the class that encapsulates a cross-cutting
concern, such as logging or transaction management, which can be applied to
multiple other classes.
○ a Join Point: Incorrect. A join point is a specific point in the execution of a
program, such as a method call.
○ an Advice: Incorrect. An advice is the action (the code) taken by an aspect at a
particular join point.
○ a pointcut: Incorrect. A pointcut is an expression that selects which join points an
advice should apply to.
●
Question #21: The Spring container gets its instructions on what objects to instantiate,
configure, and assemble by reading the:
Question #26 (Set 2): What annotation is used to map a value to the method argument in
http://localhost/factorial/{value}?
prajwalpawar
○ @RequestParam: Incorrect. This is used to extract values from query parameters
(e.g., ?value=5).
○ @PathVariable: Correct. This annotation is used to bind a value from a
placeholder in the URL path (like {value}) to a method argument.
●
Question #38 (Set 2): Which spring module provides the capability of DI or IOC?
Question #2 (Set 2): In which of the following patterns, a class's behavior or its algorithm
can be changed at run time?
prajwalpawar
● Correct Answer: name cannot be assigned with a null value
● Explanation: @NonNull is a common annotation (from libraries like Lombok or JSR
305) used by static analysis tools and IDEs.
○ no such annotation as NonNull: Incorrect. It's a very common annotation.
○ name cannot be assigned with a null value: Correct. This is its explicit meaning.
It's a contract indicating that this variable should never be null.
○ Annotation cannot be applied to a variable: Incorrect. It is designed to be applied
to variables, parameters, and return types.
○ Both A & C: Incorrect.
●
Question #18 (Set 2): Which of the following describes the Bridge pattern correctly?
● Correct Answer: This pattern is used when we need to decouple an abstraction from its
implementation so that the two can vary independently.
● Explanation:
○ This pattern builds a complex object using simple objects...: This describes the
Builder pattern.
○ This pattern refers to creating duplicate object...: This describes the Prototype
pattern.
○ This pattern is used when creation of object directly is costly: This could describe
the Flyweight or Proxy pattern.
○ This pattern is used when we need to decouple an abstraction from its
implementation...: Correct. This is the textbook definition of the Bridge pattern. It
separates an abstraction's interface from its implementation, allowing you to
change them independently.
●
Question #20 (Set 2): Which of the following statements are correct about the status of
the Http response?
● Correct Answer: A status of 200 to 299 signifies that the request was successful.
prajwalpawar
● Explanation:
○ A status of 200 to 299 signifies that the request was successful: Correct. This is
the "Successful" class of status codes.
○ A status of 300 to 399 are informational messages: Incorrect. This is the
"Redirection" class of codes. 1xx are informational.
○ A status of 400 to 499 indicates an error in the server: Incorrect. This is the
"Client Error" class of codes (e.g., 404 Not Found).
○ A status of 500 to 599 indicates an error in the client: Incorrect. This is the
"Server Error" class of codes (e.g., 500 Internal Server Error).
●
Question #22 (Set 2): Which of the following depicts best practice, Linkability for
resource representation in REST?
● Correct Answer: A resource can have a linkage to another resource, a format should be
able to express it.
● Explanation: This question refers to HATEOAS (Hypermedia as the Engine of
Application State), a key constraint of REST.
○ Both Server and Client should be able to understand...: This is a general
principle, not specific to linkability.
○ Format should be able to represent a resource completely...: This is about
resource representation, not links.
○ A resource can have a linkage to another resource...: Correct. This is the
essence of HATEOAS. A resource representation should contain links
(hypermedia) to related actions or resources, allowing the client to navigate the
API dynamically.
○ None of the above: Incorrect.
●
Question #23 (Set 2): Which of the following statement/s is/are correct?
prajwalpawar
Question #24 (Set 2): Which of the following component of HTTP response contains
response message content or Resource representation?
Question #27 (Set 2): Which design pattern works on data and an action is taken based
on data provided?
● Correct Answer: Only one instance of class is created and returned every time
● Explanation:
○ can have multiple instances of classes...: Incorrect. This violates the pattern.
○ Only one instance of class is created and returned every time: Correct. This is
the definition of the Singleton pattern. It ensures that a class has only one
instance and provides a global point of access to it.
○ does not exists: Incorrect. It's a fundamental design pattern.
○ Only one reference of interface can be created: Incorrect. The pattern applies to
class instances, not interface references.
●
Question #34: The pom.xml can inherit the dependencies from another pom.xml using:
prajwalpawar
○ <parent>: Correct. The <parent> tag is used in a child POM to inherit
configuration, including dependencies and properties, from a parent POM. This is
fundamental to multi-module Maven projects.
○ <artifactId>: Incorrect. This is the name of the project artifact.
○ <dependency>: Incorrect. This is used to declare a single dependency, not to
inherit from another POM.
○ <groupId>: Incorrect. This is the group identifier for the project.
●
Question #40 (Set 2): The syntax for the creation of a Custom marker annotation having
runtime visibility and that can be used for all types
prajwalpawar
SET 3 :
Of course. I will extract and analyze only the questions relevant to your Advanced Java syllabus
(Servlets, JSP, JDBC, Hibernate, Spring, Design Patterns, Maven, HTTP/REST Concepts). The
other questions (SQL, Core Java, Data Structures, JavaScript, React, etc.) will be ignored as
requested.
Question #28: The annotation used for declaring a servlet with multiple URL patterns
(e.g. /ABC, /XYZ) is:
● Correct Answer: This attribute gives information about URL calling the servlet...
● Explanation: When an error occurs and you use an error page, the servlet container
sets several standard attributes in the request scope to provide information about the
error.
○ ...gives exact error message...: Incorrect. This is the purpose of the
javax.servlet.error.message attribute.
○ ...gives information about exception type...: Incorrect. This is the purpose of the
javax.servlet.error.exception_type attribute.
○ ...gives status code...: Incorrect. This is the purpose of the
javax.servlet.error.status_code attribute.
○ ...gives information about URL calling the servlet...: Correct. The
javax.servlet.error.request_uri attribute stores the string value of the original URL
that was called by the client and resulted in the error.
prajwalpawar
●
prajwalpawar
○ ii. Using session object: This is technically the API (HttpSession) you use, which
in turn relies on one of the other techniques. It's often included in lists like this.
○ iii. Using response object: Invalid. The response object sends data; it's not a
tracking mechanism itself.
○ iv. Using hidden fields: Valid. The session ID can be passed in hidden <input>
fields in forms.
○ v. Using cookies: Valid. This is the most common method, where the session ID
is stored in a cookie.
○ vi. Using servlet object: Invalid. The servlet is the processor, not the tracking
technique.
●
Question #11 (from another image set): which of the following is not a scope in jsp
Question #16 (from another image set): ...The preferred way to read the y value in the jsp
is by using...
● Correct Answer: actions (Implying JSP EL, which is used with standard and custom
action tags)
● Explanation: The code shows a Spring MVC controller method adding an object with
the key "y" to a ModelAndView object. This makes "y" available in the request scope.
○ custom tags: Possible, but too specific.
prajwalpawar
○ scriptlets: Bad practice. Using <%= request.getAttribute("y") %> is discouraged
in modern MVC.
○ directives: Incorrect. Directives (<%@ ... %>) are for page settings, not for
reading data.
○ actions: Best available answer. This broadly refers to using standard actions
like JSTL (<c:out value="${y}"/>) or Expression Language (${y}) directly in the
JSP body, which is the modern, preferred way.
●
Question #22 (from another image set): doGet and doPost methods return
Question #31 (from another image set): The method which gets called everytime a
request is made in the servlet is
Question #33 (from another image set): <jsp:useBean id="x" class="y" scope="request">
this is in jsp is called as
prajwalpawar
Question #34 (from another image set): to handle 404 in jee web applications of jee, we
configure the file
Question #9 (Set 2): Which of the following is true about detached state of a persistent
entity?
● Correct Answer: Once we close the Hibernate Session, the persistent instance will
become detached.
● Explanation:
○ Once we close the Hibernate Session...: Correct. An object that was previously
in the persistent state (managed by the session) becomes detached once that
session is closed. It retains its database identity but is no longer tracked for
changes.
○ A new instance of a persistent class...: Incorrect. A new instance is transient.
○ You can make a transient instance detached...: Incorrect. You transition a
transient instance to persistent.
○ None: Incorrect.
●
Question #10 (Set 2): Which one of the following is not an ID generating strategy using
@GeneratedValue annotation?
prajwalpawar
Question #12 (Set 2): The SessionFactory of Hibernate represents:
Question #19 (from another image set): <mapping class="?"> ? here contains
prajwalpawar
(e.g., Dog, Cat) that are stored in the database, respecting the inheritance
strategy.
○ False, Design specific, Database specific: Incorrect.
●
Question #3 (Set 2): Method used to process bean before initialization callback.
● Correct Answer: can be avoided by providing the custom error controller class which
implements ErrorController
● Explanation:
○ can be avoided by providing the custom error controller...: Correct. This is the
standard way to completely replace Spring Boot's default error page.
○ can be avoided by using @GetMapping annotation: Incorrect. @GetMapping
defines a regular endpoint, not an error handler.
○ can be avoided by using @EnableAutoConfiguration annotation: Incorrect. This
annotation is what enables the Whitelabel page in the first place.
○ Cannot be avoided: Incorrect. It is designed to be overridden.
●
Question #13 (from another image set): ...What Annotation should we use on
StockController
prajwalpawar
○ @Autowired: Incorrect. This is for dependency injection.
●
Question #14 (Set 2): If the class is annotated with @Component Annotation:
● Correct Answer: the class is found during classpath scanning and creates the bean
● Explanation:
○ the class is found during classpath scanning and creates the bean: Correct.
@Component marks a class as a candidate for Spring to manage. The
component scanner finds it and instantiates it as a bean in the container.
○ ... and does not create the bean: Incorrect.
○ enables autowiring for the class: Incorrect. @Autowired enables injection;
@Component makes the class a target for injection.
○ disables autowiring for the class: Incorrect.
●
Question #20 (from another image set): In the following code, spring will create which
objects
Question #21 (from another image set): @Repository public interface UserRepository ...
this class that implements this interface has to be implemented by
prajwalpawar
○ @ComponentScan: True.
○ All of the above: Correct. @SpringBootApplication is a meta-annotation that
combines these three essential annotations.
●
Question #26 (Set 2): What annotation is used to map a value to the method argument in
http://localhost/factorial/{value}?
Question #29 (from another image set): to call a webservice from Spring, we need to use
Question #30 (from another image set): to change tomcat port no in spring boot, property
used in application.properties is.
● Correct Answer: both function and variable level (and constructor level)
● Explanation: Spring supports multiple types of dependency injection.
○ function level (Setter/Method Injection): Valid.
○ variable level (Field Injection): Valid.
○ both function and variable level: Correct. Since it can be used on both (as well
as constructors), this is the most accurate choice.
prajwalpawar
○ none of the above: Incorrect.
●
Question #36 (from another image set): which of the following annotation is used at
function level
Question #38 (Set 2): Which spring module provides the capability of DI or IOC?
prajwalpawar
○ postman is used to test web services: Correct. Postman is a very popular API
platform used for building, testing, and documenting APIs, especially RESTful
web services.
○ postman is a tool to test our database queries: Incorrect. Tools like MySQL
Workbench or DBeaver are for this.
○ postman is a tool to test css and html: Incorrect. This is done directly in a web
browser.
○ none of the above: Incorrect.
●
● Correct Answer: Only one instance of class is created and returned every time
● Explanation:
○ can have multiple instances...: Incorrect.
○ Only one instance of class is created and returned every time: Correct. This is
the definition of the Singleton pattern.
○ does not exists: Incorrect.
○ Only one reference of interface...: Incorrect. The pattern applies to class
instances.
●
Question #34: The pom.xml can inherit the dependencies from another pom.xml using:
prajwalpawar
Question (unnumbered): ________ is the command to invoke some specific maven
functionality in command line
prajwalpawar