Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mock Exam Doubts  RSS feed

sravanthi pulukuri
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A developer is designing a multi-tier web application and discovers a
need to log each incoming client request.
Which two patterns, taken independently, provide a solution for this problem?
(Choose two.)
A. Transfer Object
B. Service Locator
C. Front Controller
D. Intercepting Filter
E. Business Delegate
F. Model-View-Controller.
Answe was given as C.I guess it would be D.

The Squeaky Beans Inc. shopping application was initially developed for a non-distributed environment.
The company recently purchased the Acme Application Server, which supports distributed HttpSession
objects. When deploying the application to the server, the deployer marks it as distributable in the web
application deployment descriptor to take advantage of this feature. Given this scenario, which two must
be true? (Choose two.)
A. The J2EE web container must support migration of objects that implement Serializable.
B. The J2EE web container must use the native JVM Serialization mechanism for distributing
HttpSession objects.
C. As per the specification, the J2EE web container ensures that distributed HttpSession objects will be
stored in a database.
D. Storing references to Enterprise JavaBeans components in the HttpSession object might NOT be
supported by J2EE web containers.
Answer: A, D
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 1.) Answers should be both C and D as the question says to choose two correct options.

Question 2.) Answers are A and D as B & C are unambiguously incorrect.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!