Skip to content
Sharp

Networking · interview question

What happens if you attempt to deserialize a JSON array into a Java class with Jackson and FAIL_ON_UNKNOWN_PROPERTIES is set to true?

Multiple choiceHardchapter-11-curatedpremiumnetworkingjackson-objectmapper
Choose one answer
Answer and explanation

Correct answer

C. An exception is thrown if the array cannot be mapped.

Why

When FAIL_ON_UNKNOWN_PROPERTIES is true, Jackson will throw an exception if it encounters a property (or structure) it cannot map during deserialization.

Test yourself on Networking

A free test with instant, explained results. No account needed.

Start free test
All Networking questions →