nerdexam
Oracle

1Z0-899 · Question #99

You have created a servlet that generates weather maps. The data for these maps is calculated by a remote host. The IP address of this host is usually stable, but occasionally does have to change as…

The correct answer is D. <init-param>. See the full explanation below for the reasoning.

Question

You have created a servlet that generates weather maps. The data for these maps is calculated by a remote host. The IP address of this host is usually stable, but occasionally does have to change as the corporate network grows and changes. This IP address used to be hard coded, but after the fifth change to the IP address in two years, you have decided that this value should be declared in the deployment descriptor so you do NOT have the recompile the web application every time the IP address changes. Which deployment descriptor snippet accomplishes this goal?

Options

  • A<serlvet-param>
  • B<init-param>
  • C<servlet>
  • D<init-param>
  • E<serlvet-param>

How the community answered

(29 responses)
  • A
    14% (4)
  • B
    3% (1)
  • C
    7% (2)
  • D
    76% (22)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice