About Question enthuware.ocejws.v6.2.43 :
Posted: Wed Jan 27, 2016 3:45 pm
Both correct answers:
and
present code that would not compile. They use "@Override" annotation in classes not implementing any interfaces and not extending any other classes.
Code: Select all
@WebService
public class MathTableImpl {
@Override
@WebMethod (operationName="getMathTable")
public SimpleMathTable getTable(Integer number) throws NegException {
SimpleMathTable table = new SimpleMathTable(number);
return table;
}
}
Code: Select all
@WebService
public class MathTableImpl {
@Override
@WebMethod
public SimpleMathTable getMathTable(Integer number) throws NegException {
SimpleMathTable table = new SimpleMathTable(number);
return table;
}
}