Multiple choice technology web technology

For a web service client that is written in Java, which two can result in RemoteException?

  1. an out of memory error on the client

  2. a SOAP fault

  3. communication failure due to network error

  4. incorrect configuration of stubs

Reveal answer Fill a bubble to check yourself
B,C Correct answer
Explanation

RemoteException occurs when a remote method invocation fails. A SOAP fault from a web service translates to a RemoteException in Java clients. Network communication failures during remote calls also trigger RemoteException. Out of memory errors cause runtime exceptions like OutOfMemoryError, not RemoteException. Stub configuration errors cause compilation or initialization exceptions, not RemoteException.