Answer Posted / ranganathkini
The java.io.File class abstracts a filename and directory
pathnames. It provides useful methods to perform some basic
filesystem operations such as, verifying the existance of a
file, getting the absolute or relative path of a file,
verifying if a path refers to a directory or file, verifying
the permissions on a File, checking the file length,
create/remove folders, etc.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Why is string builder not thread safe?
What does indexof mean?
What is constructor and its types?
What is the difference between heap memory and stack memory?
Why is inheritance used in java?
How to use Media tracker Class.
What do you mean by local variable and instance variable?
How do you override a method?
Give few difference between constructor and method?
How do you define a parameter?
How many types of classes are there in java?
How can constructor chaining be done by using the super keyword?
Why strings in java are called as immutable?
What are the important features of Java 10 release?
Explain naming conventions for packages?