Home

What is the correct answer?

4

Which of the following methods can be used to change the size of a
size() *
resize()

A. component

B. dimension()

C. setSize()

D. size()

Correct Answer :

C. setSize()


Related Questions

Which of the following will produce a value of 22 if x=22.9: If you want to assign a value of 99 to the variable year, then which of… In evaluating a logical expression of type 'Boolean expression 1&& Boolean… Throwing an exception always causes program termination. We can add more than one class(es) at the time of compilation Java Beans. For all insert, update, delete, query operations on a database, ResultSet… Declaring a method synchronized guarantees that the deadlock cannot occur. Which are the valid ways to create DataInputStream streams? DataInput is One the features of is that an array can store many different types of… If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… A class may be both abstract and final. Consider the following class definition.Class Student extends String{}What… The methods wait() and noify() are defined in The import statement is always the first no comment statement in a Java… Which of the following are keywords? putValue(...) method takes _____________________- A Java monitor must either extend thread class or implement Runnable interface. JSP files creates ________________ Which of the following methods belong to the String class? Every method of a final in class is implicitly final. We would like to make a member of a class visible in all subclasses regardless… The check box group class is a subclass of the component class. What does the following line of code do?TextField text=new TextField(10); Members of a class specified as private are accessible only to the methods… What is java -g used for? Declarations can appear anywhere in the body of a Java method. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend… All methods in an abstract class must be declared abstract. EJBs can be of the following type(s)None of the above