Answer Posted / y s rajasekhara reddy
File
1. Java.io.file
2. Implements Comparable and Serializalble interfaces
3. The File class is used to perform the operations on files
and directories of the file system of an operating system.
4. The contents of the files cannot be read or write.
RandomAccessFile
1. Java.io.RandomAccessFile
2. Implements DataInputStream and DataOutputStream interfaces
3. The RandomAccessFile class has methods that perform the
direct access to data of any part of the file.
4. It provides the facilities to write primitive data to the
files.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the difference between the file and randomaccessfile classes?
Why do we need variables?
Explain notifyall() method of object class ?
What is a singleton class? Give a practical example of its usage.
what is a green thread? : Java thread
What is downcasting?
What is entry set in java?
What are wrapper classes in java?
How to check if a list is sorted in java?
What is anagram number?
What is advantage of java?
Can we override private method?
What is isa relationship?
How do you generate random numbers in java?
What are the five major types of reference sources?