What is the correct answer?


When we invoke repaint () for a Component, the AWT invokes the method:

A. draw()

B. update()

C. show()

D. paint()

Correct Answer :

B. update()

Related Questions

When we implement the Runnable interface, we must define the method When we implement an interface method, it should be declared as public. To delete a file, we can use an instance of class file. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend… Which of the following represent legal flow control statements? executeUpdate automatically updates data because___________ It is an error to have a method with the same signature in both the super… Which of the following methods can be used to draw the outline of a square? Give file is a file object, which of the following are legal statements… All methods in an abstract class must be declared abstract. Any method in a supper class can be over ridden in its subclass. In evaluating a logical expression of type 'Boolean expression 1&& Boolean… The keywords reserved but not used in the initial version of Java re: A string object can not be modified after it is created. It is perfectly legal to refer to any instance variable inside of a static… Frames and applets cannot be used together in the same program. In a single Servlet class we can use____________ class.forName(...) creates an instance of java ODBC driver Members of a class specified as private are accessible only to the methods… The default case is always required in the switch selection structure. What does the following line of code do?TextField text=new TextField(10); It is perfectly legal to assign a subclass object to a supper class reference. The methods wait() and noify() are defined in Java always provides a default constructor to a class. It is an error to catch the same type of exception in two different catch… JSP files creates ________________ A catch can have comma-separated multiple arguments. The setBackground() method is part of the class Which key word can protect a class in package from accessibility by the… Which of the following classes are available in the java.lang package?