Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
181 views
in Technique[技术] by (31.9m points)

StringBuffer中有两个私有方法writeObject和readObject有什么用?

如题,jdk版本是1.8。
方法注释上写“restore the state of the StringBuffer from a stream.”,但是这两个私有方法在类中并未被调用,是怎么来实现这个功能的呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (31.9m points)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...