Which class has a getSeconds() method?
getSeconds()
Click to view the answer
A.
A Period is measured in days, weeks, months, or years.
A Duration is measured in smaller units like minutes or seconds.
Only Duration has a getSeconds() method, making Option A correct.