everyone. I have a rookie question about the returning value in java. Here\'s my code.
@Override
public long addDrugTreatment(long id, String diagnosis, Stri
When a JMSException is thrown the return value is undefined. When an exception is thrown, control passes immediately to the exception handler. In this case, you log the error. Then control continues from that point which goes to the end of the function without returning a value. You either need to return a value or throw an exception.