Multiple choice

How many arguments are passed to the constructor of Font Class?

  1. 5

  2. 4

  3. 3

  4. 2

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

This is the correct answer, we can pass 3 arguments to the constructor of Font Class. These arguments are :-Font(String name, int style, int size)For example :-Font(“SanSerif”, Font.BOLD,20)So this is the correct answer.