Which of the following methods are defined on the Graphics class:

A) drawLine(int, int, int, int)
B) drawImage(Image, int, int, ImageObserver)
C) drawString(String, int, int)
D) add(Component);
E) setVisible(boolean);
F) setLayout(Object);

Showing Answers 1 - 3 of 3 Answers

Chandrasekar Ramasamy

  • Apr 20th, 2006
 

a,c

  Was this answer useful?  Yes

pallavr

  • Jun 30th, 2006
 

The correct answer is a,b,c :

a) drawLine(int x1, int y1, int x2, int y2)

b) drawImage(Image img, int x, int y, ImageObserver observer)

c) drawString(String str, int x, int y)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions