Home

What is the correct answer?

4

Which of the following statements are valid array declarations?

A. int number();

B. float average[];

C. double[] marks;

D. counter int[];

Correct Answer :

B. float average[];


Related Questions

Consider the following class definition.Class Student extends String{}What… A string object can not be modified after it is created. A panel can not be added to another panel. putValue(...) method takes _____________________- Connection, Statement are interfaces and ResultSet is a class. Which of the following will produce a value of 10 if x = 9.7? What does the following line of code do?TextField text=new TextField(10); The programmer must explicitly create the system .in and system .out objects. Which of the following represent legal flow control statements? DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend… The check box group class is a subclass of the component class. A static class method can be invoked by simply using the name of the method… When we invoke repaint () for a Component, the AWT invokes the method: DataInput is forName() is a static factory method The use of protected keyword to a member in a class will restrict its… The import statement is always the first no comment statement in a Java… Servlet has ___________ Give file is a file object, which of the following are legal statements… For all insert, update, delete, query operations on a database, ResultSet… The concept of multiple inheritance is implemented in Java by The keywords reserved but not used in the initial version of Java re: JSP files creates ________________ In evaluating a logical expression of type 'Boolean expression 1&& Boolean… All the bitwise operators have the same level of precedence in Java. Which of the following statements are true? executeUpdate automatically updates data because___________ It is an error if a class with one or more abstract methods is not explicitly… executeUpdate(------------) returns ___________ Which of the following are keywords?