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
How can we create a thread in java?
What is abstract class? Explain
How do you convert an int to a double in java?
Can we sort hashmap in java?
What is a website container?
When can an object reference be cast to an interface reference in java programming?
What is hashing in java?
Why char array is favored over string for the storage of passwords?
Explain scope or life time of local variables in java?
Define "Access specifiers" in java.
What is an object’s lock and which object’s have locks?
What are the differences between getting and load method?
What do you mean by jjs in java8?
5 Coding best practices you learned in java?
What is the difference between call by reference and call by pointer?