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 |
Can we call thread start () twice?
1) Find the Merge point of two linked lists. 2) Swap two bits of integer. 3) Reverse individual words of the sentence. 4) Reverse string without using temp string.
What is immutability in java?
What is the difference between instanceof and isinstance?
What two classes are used to read data only?
0 Answers TryTechnicals Pvt Ltd,
What is the difference between super class & sub class?
What are scriptlets?
What are the difference between composition and inheritance in java?
what is difference between length and length()?
What restrictions are placed on method overloading and method overriding?
What is break and continue statement?
Can memory leak happen java?