What happens if you return a Java object from a @RestController method?
It will be ignored
It will be automatically converted to JSON
It will be converted to XML
It will throw an error
This question is part of this quiz :