nerdexam
Oracle

1Z0-860 · Question #2

1Z0-860 Question #2: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #2. The question stem and answer options stay visible for context.

Question

A developer writes a session bean which uses several configurable constants. The constants are all defined as String types in JNDI. This cannot be changed because existing code is using the same JNDI information. One of the constants is a date, represented in string format. This date constant is used in multiple business methods of this session bean, actually as a Date object. Converting strings to dates is an expensive operation; therefore, the developer wants to do as little converting as possible. Which two scenarios can be used to prevent converting from String to Date in every business method? (Choose two.)

Options

  • ALoad the date string in an instance Date type variable by annotation of the instance variable and let the
  • BLoad the date string in an instance String type variable by annotation of this instance variable and
  • CLoad the date string in an instance String type variable by annotation of this instance variable and
  • DLoad the date string in an instance Date type variable by annotation of a setter method that takes a

Unlock 1Z0-860 to see the answer

You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-860 Practice
A developer writes a session bean which uses several configurable... | 1Z0-860 Q#2 Answer | NerdExam