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 aggregation in java?
What is the difference between choice and list?
What is the nested interface?
What is an object's lock and which object's have locks in java programming?
What is consumer interface?
what is an objects lock and which objects have locks? : Java thread
Differentiate between static and non-static methods in java.
What are the 7 types of characters?
Is .net better than java?
What is the this keyword?
How many threads can I run java?
What is a null point?
Are variables stored in ram?
What is file in java?
Why webdriver is an interface?