exam questions

Exam 1z0-900 All Questions

View all questions & answers for the 1z0-900 exam

Exam 1z0-900 topic 1 question 65 discussion

Actual exam question from Oracle's 1z0-900
Question #: 65
Topic #: 1
[All 1z0-900 Questions]

Which statement is true about Java methods that are exposed as Web Service operations by using JAX-WS API?

  • A. The @WebResult annotation must exist.
  • B. Method parameters and return types must be JAXB compatible.
  • C. Method parameters must be declared by using @WebParam.
  • D. The @WebMethod annotation must exist.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
orjava
7 months ago
Answer B. the question don t mention if is a session bean so D is not correct. JAX-WS requirements: -Must be public. By default every public method in the class will be part of the webservice. - Must not be static of final - Must have JAXB-compatible parameters and return types. Parameters and return types must not implement the java.rmi.Remote interface. - Business methods (Session Bean) that are exposed to web service client must be annotated with javax.jws.Webmethod
upvoted 2 times
...
peteVln
7 months, 1 week ago
@WebMethod is optional
upvoted 2 times
...
devmsaleh
1 year, 11 months ago
D is correct according to (Requirements of a JAX-WS Endpoint) : https://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/JAXWS3.html
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago