Java – why does getcanonicalpath throw a checked exception while getabsolutepath does not?

I read some relevant texts to understand the difference between the two But I wonder why getcanonicalpath () throws a check exception and getabsolutepath () doesn't throw anything?

Solution

It explains why in the document for getcanonicalpath:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>