'AnnotateClass and annotateProxyClass​

I'm currently learning java serialization. In ObjectOutputStream class there are 2 methods annotateProxyClass​ and annotateClass. Every source I have looked at is the same with oracle docs. But I don't understand these methods using this source. Can someone explain what is their usage purpose?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source