The header for the paintComponent method is _____.

The header for the paintComponent method is ________________.


A. private void paintComponent(Graphics g)
B. protected void paintComponent(Graphics g)
C. public void paintComponent(Graphics g)
D. protected void paintComponent()

The correct answer is B


Java

Learn More Multiple Choice Question :