Home / CSE MCQs / AWT :: Discussion

Discussion :: AWT

  1. In Graphics class which method is used to draws a rectangle with the specified width and height?
  2. 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)

    View Answer

    Workspace

    Answer : Option A

    Explanation :



Be The First To Comment