Home

What is the correct answer?

4

Which of the following methods can be used to draw the outline of a square?

A. fillRect()

B. drawLine()

C. drawString()

D. all of the above

Correct Answer :

B. drawLine()


Related Questions

A variable declared inside the for loop control can not be referenced… For all insert, update, delete, query operations on a database, ResultSet… The expression (x == y && a<b) is true If either x == y is true or… Session bean With javadoc, which of the following denotes a javadoc comment? Which of the following command lines options generates documentation for… The setBackground() method is part of the class Two methods cannot have the same name in Java. DataInput is Which of the following string can be used as mode string for creating… To delete a file, we can use an instance of class file. In order to connect to a database through java program we must create… A string object can not be modified after it is created. Which of the following will produce a value of 10 if x = 9.7? JSP files creates ________________ An individual array element that is passed to a method and modified in… The concept of multiple inheritance is implemented in Java by A package is a collection of It is an error if a class with one or more abstract methods is not explicitly… executeUpdate(------------) returns ___________ Any class may be inherited by another class in the same package. Which of the following statements are true? Which javadoc tag is used to denote a comment for methods parameters? Connection, Statement are interfaces and ResultSet is a class. Which of the following methods belong to the String class? In evaluating a logical expression of type 'Boolean expression 1&& Boolean… Which exception is thrown by the read() method of InputStream class? What is wrong in the following class definitions? abstract class… EJBs can be of the following type(s)None of the above Consider the following class definition.Class Student extends String{}What…