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 |
How to initialize an Applet ?
What is vector capacity in java?
When is the garbage collection used in Java?
Can an integer be null java?
What is the USE of Null interfaces ??...if thers nothing inside these interfaces how are they used and WHy are they used ???? No 1 has given a proper description yet
suppose string s1="rajnish"; string s2="bhaskar"; then what will be happend ?
Can we declare an anonymous class as both extending a class and implementing an interface?
8 Answers College School Exams Tests, JVA, TCS, Wipro,
What is meant by event handling in SAX parser?
What do you mean by the term transient?
How to sort array of 0 and 1 in java?
Can we define package statement after import statement in java?
Where local and global variables are stored?