Java – why does getcanonicalpath throw a checked exception while getabsolutepath does not?
•
Java
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
二维码