Does Java IO have the maximum file name length?

Different operating systems have different maximum file names Does java have any restrictions on the length of file names when using files?

Solution

Java does not have a maximum file name length, except for the string maximum length limit (this is the maximum length of the array, i.e. integer. Max_value) Maybe some JVMs have a lower bound, but I've never encountered such a problem (I'm almost sure it will be an error in the Java specification) and I'm sure the operating system can have one

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
分享
二维码
< <上一篇
下一篇>>