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
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
Could you please explain why the correct answer is 4?
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
the exam point is that the annotation @webMethod is just optional.