Ask Question

The File method lastModified () returns

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

+2
Answers (1)
  1. 22 January, 06: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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers