5 years ago in Java Applets

The syntax of paint()method is................

[A] public void paint()
[B] public void paint(String s)
[C] public void paint(Graphics g)
[D] public void paint(Graphics g,String s)
Loading...
Next Question

Overall Stats

Attempted 129
Correct 49
Incorrect 26
Viewed 54

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 5 days ago

Shamsa hafeez from Lahore, Pakistan is saying public void paint(Graphics g) is correct answer

akshay kharat
akshay kharat - 1 week ago

akshay kharat from Pune, India is saying public void paint(Graphics g) is correct answer

Minal Patil
Minal Patil - 1 week ago

Minal Patil is saying public void paint(Graphics g) is correct answer

Mate Achal
Mate Achal - 3 weeks ago

Mate Achal from Pune, India is saying public void paint(Graphics g) is correct answer

Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying public void paint(Graphics g) is correct answer

Related Questions

The constructor for Font class is................

  • [A] Font(String name)
  • [B] Font(string name,int style,int size)
  • [C] Font(String name,int size)
  • [D] Font(String name,int style)

Which class is used to get dimensions of an applet?

  • [A] Dimension
  • [B] metrics
  • [C] Applet
  • [D] fontMetrics

The syntax of drawstring() method is.................

  • [A] void drawstring(String s)
  • [B] void drawstring(String s,int x,int y)
  • [C] void drawstring(int x,int y,string s)
  • [D] void drawstring(String x,int x)

To display text on the applet........method is used.

  • [A] showString()
  • [B] drawString()
  • [C] println()
  • [D] printString()