Multiple choice

What is the third argument passed to constructor of Font class?

  1. Int size

  2. String name

  3. Int style

  4. Int alignment

  5. Int Color

Reveal answer Fill a bubble to check yourself
A 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)The third argument specifies the size of the font.So this is the correct answer.