Multiple choice

Which of the following methods is not present in the TextLayout class in java?

  1. isLeftToRight()

  2. isRightToLeft()

  3. getCharacterCount()

  4. isVertical()

  5. getBounds()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct choice. There is no method named isRightToLeft() present in the TextLayout class. The correct method name is isLeftToRight() and it returns true if this TextLayout has a left-to-right base direction or false if it has a right-to-left base direction.