Page 1 of 1

About Question enthuware.ocejws.v6.2.43 :

Posted: Wed Jan 27, 2016 3:45 pm
by piotr.kraciuk
Both correct answers:

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;
   } 
}
and

Code: Select all

@WebService
public class MathTableImpl {
   @Override    
   @WebMethod    
   public SimpleMathTable getMathTable(Integer number) throws NegException {
      SimpleMathTable table = new SimpleMathTable(number);
      return table;    
   } 
}
present code that would not compile. They use "@Override" annotation in classes not implementing any interfaces and not extending any other classes.

Re: About Question enthuware.ocejws.v6.2.43 :

Posted: Wed Jan 27, 2016 4:05 pm
by fjwalraven
Yes, you are right! I will check all related questions and fix them.

Thanks again for your feedback!

Regards,
Frits