Full 1Z0-900 Practice Test and 142 unique questions with explanations waiting just for you! [Q62-Q84]

Share

Full 1Z0-900 Practice Test and 142 unique questions with explanations waiting just for you!

Java EE and Web Services Dumps 1Z0-900 Exam for Full Questions - Exam Study Guide

NEW QUESTION 62
Given:

What will be the response to a HEAD request?

  • A. No method will be invoked and a 404 error will be returned.
  • B. The findAll() method will be called and the employee list will be returned.
  • C. The findAll() method will be called and no employees will be returned.
  • D. No method will be invoked and no error will be returned.

Answer: D

 

NEW QUESTION 63
Which is a valid description of REST?

  • A. REST is a library that is part of JEE called JAX-RS.
  • B. REST provides the same architectural properties as SOAP.
  • C. REST is a Web Services standard supported by JEE and JAX-RS.
  • D. REST is the conventional way of interacting with information resources.

Answer: C

 

NEW QUESTION 64
On your JSF page, you have a form in which you have a command button:

A user submits the form by clicking the button, and no errors occur while processing the request. Which statement is true?

  • A. The actNow() method controls the condition upon which the listenCarefully() method is allowed to be executed.
  • B. The actNow method is executed followed by the listenCarefully() method.
  • C. The listenCarefully() method is executed followed by the actNow() method.
  • D. The actNow() and ListenCarefully() methods are executed in parallel.

Answer: C

 

NEW QUESTION 65
Which type allows you to share servlet attributes across your entire web application?

  • A. ServletRequest
  • B. ServletContext
  • C. ServletConfig
  • D. HttpSession

Answer: B

Explanation:
Explanation/Reference:
Reference: https://stackoverflow.com/questions/123657/how-can-i-share-a-variable-or-object-between- two-or-more-servlets

 

NEW QUESTION 66
Which statement is true about the WS-Security standard?

  • A. It provides message-level security.
  • B. It relies on HTTP security mechanism to protect SOAP messages in transmit.
  • C. It is a Java EE standard for protecting SOAP services.
  • D. It defines protocol-specific ways of protecting SOAP messages.

Answer: A

Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/cd/E19226-01/820-7627/gjiou/index.html

 

NEW QUESTION 67
Given the code fragments:

What code should you add to the body of the updateEmployeemethod in order to save pending changes to the database?
entityManager.merge(emp);

  • A. Context. Ctx = new InitialContext();
  • B. entityManager.merge(emp);
    entityManager.getTransaction().commit();
  • C. EntityManager.merge(emp);
    entityManager.getTransaction().begin();
  • D. UserTransaction utx = (UserTransaction)ctx.lookup(''java:comp/
    UserTransaction'');
    utx.begin();
    entityManager.merge(emp);
    utx.commit();
    entityManager.lock(emp);

Answer: D

 

NEW QUESTION 68
You have been assigned to the Widget Editor portion of an application. It contains a Widget Editor Facelet page, the Widget class, and a simple WidgetEditor backing bean, which contains a reference to the current Widget instance.
Given the code fragment from the Widget class:

Given the code fragment from the Facelet page:

The page displays Conversion Error when a user fills out all the form fields and clicks the Save button.
Which step do you perform to fix this problem?

  • A. Replace Line 1 with:<h:inputText
    id="createDate"value="#{widgetEditor.widget.createdDate}"><f:convertDateTime pattern="dd-mm-yyyy"/></h:inputText>
  • B. Replace Line 1 with:<h: inputText
    id="createDate"value="#{widgetEditor.widget.createdDate}"converter="java.util.Date"/>
  • C. Enclose the code fragment within the <f:view/> tag
  • D. Insert <f:convertDateTime"/> at Line 1

Answer: A

 

NEW QUESTION 69
Given the code fragment:

And

Which two steps, when performed independently, enable the index.xhtml page to print the following text: The Id is 12345? (Choose two.)

  • A. Replace line 3 with: @Inject public Account getAcc()
  • B. Replace line 2 with: @Inject public void setAcc(Account acc)
  • C. Replace line 1 with: private @Inject Account acc;
  • D. Replace line 2 with: public void setAcc(@Inject Account acc)
  • E. Replace line 1 with: @Inject private Account acc;
  • F. Replace line 3 with: public @Inject Account getAcc()

Answer: D,F

 

NEW QUESTION 70
Given the code fragment:

How can you get all property names of a JMS message in the JMS consumer onMessage operation?

  • A. Enumeration props = msg.getPropertyNames();
  • B. String [] props = msg.getPropertyNames();
  • C. List<String> props = msg.getProperties();
  • D. Iterator props = msg.getPropertyNames();

Answer: B

 

NEW QUESTION 71
While performing the task ''Create Chart of Accounts, Ledger, Legal Entities, and Business Units in Spreadsheet Task'', you mentioned that the legal entity country is the United States of America.
What will be the functional currency of the ledger you are defining?

  • A. The system will ask the user to provide functional currency at the time of uploading the spreadsheet if it is not provided in the first place.
  • B. It is mandatory to provide functional currency, because ledger cannot be defined without functional currency. The system will throw an error upon processing.
  • C. The system will pock the first available currency from the list of Values.
  • D. It is mandatory to provide functional currency because ledger cannot be defined without functional currency.
    The system will throw an error upon upload of the spreadsheet because all required fields are not populated.
  • E. The system will automatically pick ''USD'' as functional currency from the legal entity country.

Answer: E

 

NEW QUESTION 72
Given the following code:

What should you do at line 1to enable this servlet receive request data without blocking?

  • A. Use a Runnableinstance with the start ()method of AsyncContext.
  • B. Define a ReadListener and assign it to the request input stream.
  • C. Create a Callable class and delegate this operation to a ManagedExecutorServiceby using the dispatch method of AsyncContext.
  • D. Define an AsyncListenerand assign it to the AsyncContext object.

Answer: D

 

NEW QUESTION 73
Which three applications originate a buy request that is received by supply chain orchestration?

  • A. Order Management
  • B. Self Service Procurement
  • C. Accounts Payable
  • D. Planning
  • E. Purchasing
  • F. Inventory

Answer: A,D,F

Explanation:
Explanation

 

NEW QUESTION 74
You have been assigned to the Widget Editor portion of an application. It contains a Widget Editor Facelet page, the Widgetclass, and a simple WidgetEditorbacking bean, which contains a reference to the current Widgetinstance.
Given the code fragment from the Widgetclass:

Given the code fragment from the Facelet page:

The page displays Conversion Error when a user fills out all the form fields and clicks the Save button.
Which step do you perform to fix this problem?

  • A. Replace Line 1with:
    < h: inputText id="createDate"
    value="#{widgetEditor.widget.createdDate}"
    converter="java.util.Date"/>
  • B. Enclose the code fragment within the <f:view/>tag
  • C. Insert <f:convertDateTime"/>at Line 1
  • D. Replace Line 1with:
    <
    h:inputText id="createDate"
    value="#{widgetEditor.widget.createdDate}">
    < f:convertDateTime pattern="dd-mm-yyyy"/>
    < /h:inputText>

Answer: D

 

NEW QUESTION 75
Which statement is true about the WS-Security standard?

  • A. It provides message-level security.
  • B. It relies on HTTP security mechanism to protect SOAP messages in transmit.
  • C. It is a Java EE standard for protecting SOAP services.
  • D. It defines protocol-specific ways of protecting SOAP messages.

Answer: A

Explanation:
Explanation/Reference: https://docs.oracle.com/cd/E19226-01/820-7627/gjiou/index.html

 

NEW QUESTION 76
You have a set up min-max planning at the subinventory level with the following to source item AS12312 for Organization: M1:
* Source Type: Organization
* Organization: M1
What type of supply request will be generated?

  • A. Intraorganization transfer order
  • B. Purchase Requisition
  • C. Internal Requisition
  • D. None; this is an invalid setup
  • E. Movement request

Answer: A

 

NEW QUESTION 77
Which class do you use to handle an incoming JSON Message as a stream?

  • A. JsonObject
  • B. JsonParser
  • C. JsonObjectBuilder
  • D. JsonReader

Answer: D

Explanation:
Explanation
Reference https://docs.oracle.com/javaee/7/tutorial/jsonp002.htm

 

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

  • A. verifying that a user is allowed to perform an action
  • B. verifying identity claims from users
  • C. protecting data from unauthorized viewing by using encryption
  • D. ensuring that data is not modified in transit

Answer: A,D

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

 

NEW QUESTION 79
You are in the process of analyzing the demand and supply schedules for the item based on high level reservations.

  • A. Transfer Order
  • B. Work Order
  • C. Requisition
  • D. Account Alias
  • E. Movement Request
  • F. On Hand

Answer: A

 

NEW QUESTION 80
What is true about Message-Driven Beans (MDBs)?

  • A. MDBs are invoked synchronously.
  • B. MDBs can participate in transactions.
  • C. MDBs retain data caches between client calls.
  • D. Each MDBs can process messages only from a single client.

Answer: B

Explanation:
Explanation/Reference:
Reference: https://docs.oracle.com/javaee/7/tutorial/ejb-intro003.htm

 

NEW QUESTION 81
Given the code fragment:

Which method should be used on line 3to enable default validation mechanism?

  • A. u.setAdapter(XmlAdapter)
  • B. u.setProperty(Schema)
  • C. u.setProperty(String, Object)
  • D. u.setEventHandler(ValidationEventHandler)

Answer: A

Explanation:
Explanation/Reference: https://docs.oracle.com/javaee/6/api/javax/xml/bind/Unmarshaller.html

 

NEW QUESTION 82
: 15
Given:

What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated?

  • A. @Stateless
  • B. @Stateful @PassivationCapable
  • C. @Stateless @PassivationCapable
  • D. @Stateful

Answer: D

 

NEW QUESTION 83
Given the code fragment:

How long does this cookie persist?

  • A. until browser shutdown
  • B. this request
  • C. until garbage collection in the servlet instance
  • D. until server shutdown

Answer: A

Explanation:
Explanation/Reference: https://docs.oracle.com/javaee/6/api/javax/servlet/http/Cookie.html

 

NEW QUESTION 84
......

Authentic Best resources for 1Z0-900 Online Practice Exam: https://www.examcollectionpass.com/Oracle/1Z0-900-practice-exam-dumps.html