MCQOPTIONS
Saved Bookmarks
| 1. |
In Graphics class which method is used to draws a rectangle with the specified width and height? |
| A. | public void drawRect(int x, int y, int width, int height) |
| B. | public abstract void fillRect(int x, int y, int width, int height) |
| C. | public abstract void drawLine(int x1, int y1, int x2, int y2) |
| D. | public abstract void drawOval(int x, int y, int width, int height) |
| Answer» B. public abstract void fillRect(int x, int y, int width, int height) | |