• Tutorials
  • Courses
  • Tracks

Question 4

Last Updated :
Discuss
Comments

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

Share your thoughts in the comments