138k views
2 votes
What is the return type of writeDouble( double d ), a method of RandomAccessFile.

a) void b) int c) float d) double f ) boolean g) file object h) none

User Rufus
by
6.8k points

1 Answer

4 votes

Answer:

The answer is h) none.

Step-by-step explanation:

The RandomAccessFile.writeDouble(double d) method does not return any value, it converts the double d value into a long type and then, writes it into a file as an eight-byte quantity. So, the method does not return any value but creates a file object.

User Daddy
by
6.5k points