Answer Posted / ranganathkini
The java.io.File is represents a filepath and provides
methods to access filesystem services in the Java
application. Services such as creating folders, verifying
the existance or permissions of a file, etc.
The java.io.RandomAccessFile is a class that allows random
record based access to data stored in a file. This class
helps in creating and manipulating files in a record based
way unlike a sequential access provided by streams.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How does linkedhashmap work in java?
What are recursive functions? Give some examples?
Explain restrictions on using enum?
Is string is a data type?
Where local and global variables are stored?
What is the purpose of the return statement?
What class allows you to read objects directly from a stream in java programming?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
Explain the difference between abstraction and encapsulation.
What is default constructors?
What is constructor in java ?
What string is utf8?
What happens if constructor is private?
What are autoboxing and unboxing? When does it occur?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?