Ask Question
10 June, 11:46

The File method lastModified () returns

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

+5
Answers (1)
  1. 10 June, 14:43
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers