Multiple choice technology web technology

How is JAXB different from other parsers?

  1. Stateless event driven

  2. Streaming API Driven

  3. Static binding of XSD to Java components

  4. All the above

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

JAXB uses static binding of XSD to Java components, meaning Java classes are generated at compile time from the schema. This differs from SAX (stateless event-driven) and StAX (streaming API) which are dynamic parsers.