How many web methods are there in the above web service ? (Choose one)

Given the following web service:

How many web methods are there in the above web service ? (Choose one)

Given the following web service:

How many web methods are there in the above web service ? (Choose one)

A.
1

B.
2

C.
3

D.
4

E.
5



Leave a Reply 3

Your email address will not be published. Required fields are marked *


jane

jane

Could you please explain why the correct answer is 4?

gfrascadore

gfrascadore

Hi jane,
It is the answer 4 beacuse @WebService makes methods expose as operations if they are not private. @WebMethod has default exclude attribute set to false, so you have: exp, log, add, subtract.

divide is excluded because it is private

Bye

Leo Yu

Leo Yu

the exam point is that the annotation @webMethod is just optional.