Most asked top Interview Questions and Answers & Online Test
Education platform for interview prep, online tests, tutorials, and live practice

Build skills with focused learning paths, mock tests, and interview-ready content.

WithoutBook brings subject-wise interview questions, online practice tests, tutorials, and comparison guides into one responsive learning workspace.

Prepare Interview

JAXB Interview Questions and Answers

Ques 16. Discuss Customization Levels.

Customizations can be made at four levels
– global
• defined at ā€œtop levelā€ in a <jxb:globalBindings> element
• applies to all schema elements in the source schema
and in all included/imported schemas (recursively)
– schema
• defined at ā€œtop levelā€ in a <jxb:schemaBindings> element
• applies to all schema elements in the target namespace of the source schema
– definition
• defined in a type or global declaration
• applies to all schema elements that reference the type or global declaration
– component
• defined in a particular schema element or attribute declaration
• applies only to it

Is it helpful? Add Comment View Comments
 

Ques 17. Discuss Global Bindings attributes.

• collectionType
– ā€œindexedā€ (uses array and provides methods to get/set elements) or fully-qualified-java-class-name(must implement java.util.List)
– default is ā€œjava.util.ArrayListā€
• enableFailFastCheck
– ā€œtrueā€ or ā€œfalseā€ (default)
– if true, invalid property values are reported as soon as they are set, instead of waiting until validation is requested
– not implemented yet in RI
• generateIsSetMethod
– ā€œtrueā€ or ā€œfalseā€ (default)
– if true, generates isSet and unSet methods for the property
• underscoreBinding
– ā€œasCharInWordā€ or ā€œasWordSeparatorā€ (default)
– if ā€œasWordSeparatorā€ , underscores in XML names are removed and words are camel-cased to form Java name
– for example, ā€œgear_shift_knobā€ goes to ā€œgearShiftKnobā€
• bindingStyle (was modelGroupAsClass)
– ā€œmodelGroupBindingā€ or ā€œelementBindingā€ (default)
• choiceContentProperty
– ā€œtrueā€ or ā€œfalseā€ (default)
– allows objects to hold one of a number of property choices which may each have a different data type
• enableJavaNamingConventions
– ā€œtrueā€ (default) or ā€œfalseā€
• fixedAttributeAsConstantProperty
– ā€œtrueā€ or ā€œfalseā€ (default)
– if true, ā€œfixedā€ attributes will be represented as constants
• typesafeEnumBase
– ā€œxsd:stringā€ , ā€œxsd:decimalā€ , ā€œxsd:floatā€ , ā€œxsd:doubleā€ or ā€œxsd:NCNameā€ (default)
– defines field type used to represent enumerated values in generated typesafe enum class
• typesafeEnumMemberName
– ā€œgenerateNameā€ or ā€œgenerateErrorā€ (default)
– specifies what to do if an enumerated value cannot be mapped to a valid Java identifier
– ā€œgenerateNameā€ generates names in the form VALUE_#
– ā€œgenerateErrorā€ reports an error

Is it helpful? Add Comment View Comments
 

Ques 18. What is the syntax of schemaBindings?

• The syntax for the schemaBindings element is
<jxb:schemaBindings>
<jxb:package [name="package-name"]>
<jxb:javadoc> ... javadoc ... </jxb:javadoc>
</package>
<jxb:nameXmlTransform>
<jxb:typeName prefix="prefix" suffix="suffix"/>
<jxb:elementName prefix="prefix" suffix="suffix"/>
<jxb:modelGroupName prefix="prefix" suffix="suffix"/>
<jxb:anonymousTypeName prefix="prefix" suffix="suffix"/>
</jxb:nameXmlTransform>
</jxb:schemaBindings>
– every element and attribute within schemaBindings is optional

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

Copyright Ā© 2026, WithoutBook.