NoSuchObjectException extends RemoteException
NoSuchObjectLocalException extends EJBException
so both are correct.
NoSuchObjectException and NoSuchObjectLocalException are specific detail whereas RemoteException/EJBException are generic detail.
Based on the question and answers given,
you should choose the best suitable answers.
Vaithiya