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 a 16 bit word?
What is the minimum and maximum length of an identifier?
What is the numeric promotion?
What classes of exceptions, caught by a catch clause?
What are "class access modifiers" in Java?
Is singleton set an interval?
Explain try and catch keywords in java?
Which class represents the socket that both the client and server use to communicate with each other?
What is the difference between hashmap and hashtable in java?
wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
What is set string?
What are the different types of java?