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:
- Summary of common runtimeException exceptions
- Python FileNotFoundError: [Errno 2] No such file or directory: ‘objects/epsilon.pkl
- Fatal: unable to create ‘project_ path/.git/ index.lock ‘: File exists.
- stay web.xml Configure error page in
- 12-web security — error injection based on SQL Server — and, convert, cast
- Spring MVC error HTTP status 400 – bad request
- File.createNewFile report errors java.io.IOException , resolved
- Java gets the type t.class of generic t
- Error = [Microsoft][SQL Server Native Client 11.0]Unable to open BCP host data-file
- Java retainAll throws an unsupported operation exception record
- Solved: elasticsearch error: exception [type = search]_ phase_ execution_ exception, reason=all shards failed]
- java.lang.IllegalArgumentException : urlcoder exception resolution
- [springboot] problem failed to determine a suitable driver class
- Illegal escape character in string literal
- JavaScript realizes the longest substring of non repeated characters
- Error in pyinstall package Python program: jinja2.exceptions.templatenotfound: Chart_ Solution to component.html
- How to open dump in Windows
- Nginx configures different domain names to access different projects
- There is no getter for property named ‘id‘ in ‘class java.lang.Integer‘
- Pg_dump Error: pg_dump: No matching tables were found,pg_dump: schema with OID 1515227 does not exi