XSD reuse interview questions and answers

#1. Reuse by defining a “ComplexType”. EmployeeType is reused.

Once JAXB annotated classes are created

XML output:

#2. Inheritance reuse where sub types can define additional elements like “salary”, “contractRate”, etc.

Once the JAXB annotated classes…

Members Only Content

Log In Register Home

800+ Java Interview Q&As Menu

Learn by categories on the go...
Learn by categories such as FAQs – Core Java, Key Area – Low Latency, Core Java – Java 8, JEE – Microservices, Big Data – NoSQL, Architecture – Distributed, Big Data – Spark, etc. Some posts belong to multiple categories.