What is the purpose of the File class?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran
fileclass is used to read or write data from and to the file
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / letsapa
can be used to find information about a file, such as
whether it exist or is open, its size, and its, last
modification
| Is This Answer Correct ? | 3 Yes | 0 No |
What is the largest long allowed by java?
What are the advantages of compiled language?
What is the purpose of the finally clause?
Can we write a class without main method in java?
Can a Byte object be cast to a double value?
What are benefits of java?
There can be a abstract class without abstract methods, but what is the need to declare a class abstract if it doesn't contain abstract methods?
what is daemon thread and which method is used to create the daemon thread? : Java thread
Is java still necessary?
What is the meaning of flag day?
what is the use of servlet engine?
What are internal and external variables?