Invoking ___ returns the width of the string in a FontMetrics object fm.

Invoking ___ returns the width of the string in a FontMetrics object fm.


A. getLength(s)
B. fm.getHeight(s)
C. fm.stringWidth(s)
D. fm.getWidth(s)

The correct answer is C


Java

Learn More Multiple Choice Question :