nerdexam
Oracle

1Z0-899 · Question #194

1Z0-899 Question #194: Real Exam Question with Answer & Explanation

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

Question

You have built a web application that you license to small businesses. The webapp uses a context parameter, called licenseExtension, which enables certain advanced features based on your client's license package. When a client pays for a specific service, you provide them with a license extension key that they insert into the <context-param> of the deployment descriptor. Not every client will have this context parameter so you need to create a context listener to set up a default value in the licenseExtension parameter. Which code snippet will accomplish this goal?

Options

  • AYou cannot do this because context parameters CANNOT be altered programmatically.
  • BString ext = context.getParameter(`licenseExtension');if ( ext == null )
  • CString ext = context.getAttribute(`licenseExtension');if ( ext == null )
  • DString ext = context.getInitParameter(`licenseExtension')if ( ext == null )
  • EString ext = context.getInitParameter(`licenseExtension')if ( ext == null )

Unlock 1Z0-899 to see the answer

You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 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-899 Practice