Java OCA OCP Practice Question 320

Question

Which of the following are true?

Choose all that apply.

A.  The class AbstractFileAttributes applies to all operating systems
B.  The class BasicFileAttributes applies to all operating systems
C.  The class DosFileAttributes applies to Windows-based operating systems
D.  The class WindowsFileAttributes applies to Windows-based operating systems
E.  The class PosixFileAttributes applies to all Linux/UNIX-based operating systems
F.  The class UnixFileAttributes applies to all Linux/UNIX-based operating systems


B, C, and E are correct.

Note

BasicFileAttributes is the general superclass.

DosFileAttributes subclasses BasicFileAttributes for Windows operating systems.

PosixFileAttributes subclasses BasicFileAttributes for UNIX/Linux/Mac operating systems.

A, D, and F are incorrect because no such classes exist.




PreviousNext

Related