Ask Question
27 July, 16:18

The File method lastModified () returns

a) date b) int c) double d) long e) specified by the programmer f) none

+4
Answers (1)
  1. 27 July, 16:32
    0
    Answer: d) long

    Explanation: The lastModified () is a function found in the Java class. This function returns a value in the long form in the File method. It represents the time in the long value which denotes the last time the file was modified. In case of exception error, 0L value is returned.

    Other options are incorrect because int and double because it has 32 bit integer form and 64 bit float form respectively whereas lastModified () function works in 64 bit having two's complement integer. The return type cannot be specified by programmer. Thus the correct option is option (d).
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “The File method lastModified () returns a) date b) int c) double d) long e) specified by the programmer f) none ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers