Free Oracle 1z0-900 Exam Braindumps (page: 2)

You need to develop a chat application, which allows the display of emoticons and images together with text messages.

How should you configure a WebSocket endpoints to receive both text and binary messages?

  1. Create two @onMessage methods in the same endpoint with appropriate parameter types.
  2. Define the @onMessage methods in your endpoint with Object as parameter and check the actual type in your code.
  3. You can achieve this only by creating separate WebSocket endpoints for each message type.
  4. Create two @onMessage methods, each with appropriate decoder attribute in the same endpoint.

Answer(s): D


Reference:

https://abhirockzz.gitbooks.io/java-websocket-api-handbook/content/Receiving%20Messages.html



Which two capabilities are provided by the Java Authentication and Authorization Services (JAAS) API? (Choose two.)

  1. protecting data from unauthorized viewing by using encryption
  2. verifying that a user is allowed to perform an action
  3. ensuring that data is not modified in transit
  4. verifying identity claims from users

Answer(s): B,C


Reference:

https://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html



Which interface should you implement if you want to be alerted to the lifecycle events surrounding your task being executed by a ManagedExecutorService?

  1. the Runnable Interface
  2. the ManagedExecutorTask interface
  3. the TaskEventListener interface
  4. the ManagedTaskListener interface

Answer(s): D


Reference:

https://github.com/javaee/concurrency-ee-spec/blob/master/api/src/main/java/javax/enterprise/ concurrent/ManagedExecutorService.java



Given the code fragment:


Which URL triggers the invocation of the getEmployee () method?

  1. <base url>/Employees/89724
  2. <base url>/Employees/J6349
  3. <base url>/Employees/id:a7280
  4. <base url>/Employees/id/J6349

Answer(s): B






Post your Comments and Discuss Oracle 1z0-900 exam prep with other Community members:

1z0-900 Exam Discussions & Posts