Multiple choice technology architecture

Which of the following is true with respect to JAX-WS and JAX-RPC?

  1. JAX-WS talks about Web Services where as JAX-RPC is not related to Web Services.

  2. Both use JAXB for data binding

  3. JAX-WS uses JAXB for data binding.

  4. JAX-RPC uses JAXB for data binding.

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

JAX-WS (Java API for XML Web Services) is the modern standard that uses JAXB for XML data binding. JAX-RPC is the older, deprecated API. Option A is wrong because both are web service APIs. Option B claims both use JAXB, which is false - JAX-RPC does not. Option D incorrectly states JAX-RPC uses JAXB. Only JAX-WS uses JAXB.