184k views
0 votes
The method __________ sets the font (helvetica, 20-point bold) in component

c.
c.setfont(new font("helvetica", font.bold, 20))
c.setfont(new font("helvetica", bold, 20))
c.setfont(font("helvetica", font.bold, 20))
c.setfont(new font("helvetica", font.bold, 20))

User Spooki
by
8.1k points

1 Answer

4 votes
The method d) c.setFont(new Font("Helvetica", Font.BOLD, 20)) sets the font (Helvetica, 20­point bold) in component C. A set of instructions that can be called for execution using the method name is a method in Java that can take in data or parameters and return a value - both parameters and return values are optional.
User Marckassay
by
7.7k points