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 java reflection?
What is the difference between overriding & overloading?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Can we override a variable in java?
What is the difference between a static and a non-static inner class in java programming?
Where is const variable stored?
What are the benefits of operations?
What is the difference between a local variable and an instance variable?
Explain serialization and deserialization in java?
Tell some latest versions in JAVA related areas?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
What is the original name of java?
What is getkey () in java?
Can I use % with real numbers?
How many bytes are a float?