Path method ________ returns the String name of a file or directory without any location information.

a. getStringName
b. getFileOrDirectoryName
c. getDirectoryName
d. getFileName


d. getFileName

Computer Science & Information Technology

You might also like to view...

Answer the following questions true (T) or false (F)

1. True/False: Today most operating system files, program files, and data files that are produced by applications are binary files. 2. True/False: Sequential files are sometimes called rapid-access files. 3. True/False: When a sequential file is created, the programmer must give it an internal name which is the name by which it will be known in the program code.

Computer Science & Information Technology

When using static IP addressing, software automatically configures the network connection on each device.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A technician is renaming files on a PC from a command prompt and is currently in the root of drive C:. Which of the following commands should the technician use to move to a different directory?

A. CD B. DIR C. MD D. RD

Computer Science & Information Technology

To set the style of text to a particular font family, which property can you use?

A. fontfamily property B. kerning property C. text property D. typeface property

Computer Science & Information Technology