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
Why is String immutable?
What is callable java?
Why inputstreamreader is used in java?
How to change value in arraylist java?
What is a singleton puppy?
What is a generic data type?
What is the biggest integer?
What do you mean by Function Overloading in java?
What do you mean by platform independence?
I want to persist data of objects for later use. What’s the best approach to do so?
What are the 7 types of characters?
Which keyword specify that a variable is effectively final ?
What are different data types?
How to connect to a remote database using Applet?
What is an object’s lock and which object’s have locks?