Home

Which of the following statements are valid array declarations?

A. int number();

B. float average[];

C. double[] marks;

D. counter int[];

You can do it
  1. Which of the following statements are valid array declarations?
  2. The programmer must explicitly create the system .in and system .out objects.
  3. It is perfectly legal to refer to any instance variable inside of a static method.
  4. Which exception is thrown by the read() method of InputStream class?
  5. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  6. executeUpdate automatically updates data because___________
  7. The name of the RMI compiler is ___________
  8. The methods wait() and noify() are defined in
  9. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  10. A panel can not be added to another panel.
  11. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  12. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  13. A package is a collection of
  14. Which of the following command lines options generates documentation for all classes and methods?
  15. Which of the following methods can be used to draw the outline of a square?
  16. The modulus operator (%) can be used only with Integer operands.
  17. What is java -g used for?
  18. Session bean
  19. putValue(...) method takes _____________________-
  20. One the features of is that an array can store many different types of values.
  21. An individual array element that is passed to a method and modified in that method will contain the…
  22. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  23. An EJB is a server-side component that encapsulates the business logic of an application
  24. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  25. DataInput is
  26. To delete a file, we can use an instance of class file.
  27. Give file is a file object, which of the following are legal statements to create a new file.
  28. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  29. We can add more than one class(es) at the time of compilation Java Beans.
  30. Which of the following are keywords?