The File class operates on files and directories
CreateNewFile create file
Mkdir mkdirs create file
Exists to determine whether a file or folder exists
Length gets the file length
LastModified Time
GetName gets the name of the file or folder
GetPath relative path
Absolute path of getAbsoultPath
Runtime Exception
ArithmeticmeticException
Abnormal ArrayIndexOutOfBoundsException array index of crossing the line
NullPointerException NullPointerException
Type cast exception ClassCastException
Illegal parameter exception IllegalArgumentException
Index overbounds Exception IndexOfBoundsException
Checked Exceptions are non-runtime exceptions
I/O exception IOException
Read More:
- Java retainAll throws an unsupported operation exception record
- Java operation temporary file creation and deletion
- Solution to “550 create directory operation failed” in FTP operation file
- [Solved] Mac ES Startup Error: Exception in thread “main“ java.nio.file.NotDirectoryException
- 404 exception in servlet operation
- The solution of a Java exception has occurred. And error exception in thread when eclipse runs
- The shell runs the class file and imports the jar package that the class depends on
- 【PTA:】 Error: class X is public should be declared in a file named X.java
- Realize the simplest recursive call, simulate exception in thread “main” java.lang.stackoverflowerror exception
- Python read / write file error valueerror: I/O operation on closed file
- HDFS Java API operation error (user permission)
- Cause check of unreachable statement exception in Java
- Vs2017 cannot open the source file “XXX. H” by adding a file name after creating a new class
- java.lang.IllegalArgumentException : urlcoder exception resolution
- [resolved] error: Java: illegal character: ‘\ ufef’ or error: Java: class, interface or enum required
- The Java command could not find or load the main class
- java.net.SocketException: socket failed: EPERM (Operation not permitted)
- There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘
- java.lang.IllegalStateException Exception: cause analysis and solution
- Request processing failed;nested exception is java.lang.*