aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 2 on Java Swing and AWT
  • Which of the following methods of Font class returns the ...
Multiple choice

Which of the following methods of Font class returns the name of the font family to which the invoking font belongs?

  1. getFontName()

  2. getName()

  3. getStyle()

  4. getFamily()

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

This method of Font class returns the name of the font family to which the invoking font belongs.

Keep practicing — related questions

  • Which of the following methods of Font class is used to return the logical name of the invoking font?
  • The ____________ method of font class is used to return the style values of the invoking font.
  • Which of the following methods of Font class returns the string equivalent of the invoking font?
  • The name of the class used to programmatically create a font dialog box is:
  • Which of the following does not belong to the basic CSS font property?
  • Which of the following classes in Java encapsulates various information related to a font, which helps a us...
  • The _____________ method of FontMetrics class is used to return the width of the widest character in java a...
  • With reference to CSS, which font property is used to display the text in bold letters?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Java Core Classes and Threads (1473 questions)

More quizzes with this question

  • Test 2 on Java Swing and AWT
  • Java Program & Oracle
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy