You are not logged in.

#1 2015-06-18 06:56:42

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Java AWT And Swing Public Void:

Java Quizzes Java AWT And Swing

Question:
In Graphics class which method is used to draws a rectangle with the specified width and height?

Option A):
public abstract void drawOval(int x, int y, int width, int height)
Option B):
public abstract void fillRect(int x, int y, int width, int height)
Option C):
public void drawRect(int x, int y, int width, int height)
Option D):
public abstract void drawLine(int x1, int y1, int x2, int y2)

Correct Answer is Option C):
public void drawRect(int x, int y, int width, int height)


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-06-18 06:56:42

Advertisement
Ads By Google

Re: Java AWT And Swing Public Void:



\n

Board footer