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. EJBs can be of the following type(s)None of the above
  2. The keywords reserved but not used in the initial version of Java re:
  3. In a single Servlet class we can use____________
  4. The modulus operator (%) can be used only with Integer operands.
  5. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  6. Which of the following methods belong to the String class?
  7. Which of the following methods can be used to remove a component from the display?
  8. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  9. The name of a Java program file must match the name of the class with the extension Java.
  10. Which are the valid ways to create DataInputStream streams?
  11. Servlet can have ___________
  12. The use of protected keyword to a member in a class will restrict its visibility as follows:
  13. Which of the following command lines options generates documentation for all classes and methods?
  14. Which exception is thrown by the read() method of InputStream class?
  15. Which of the following statements are true?
  16. Which of the following represent legal flow control statements?
  17. JSP files creates ________________
  18. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  19. A static class method can be invoked by simply using the name of the method alone.
  20. When the string objects are compared with ==, the result is true If the strings contain the same values.
  21. The break statement is required in the default case of a switch selection structure.
  22. Which key word can protect a class in package from accessibility by the classes outside the package?
  23. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  24. We can add more than one class(es) at the time of compilation Java Beans.
  25. Java always provides a default constructor to a class.
  26. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  27. In the code below, what data types the variable x can have?
  28. The concept of multiple inheritance is implemented in Java by
  29. Which of the following will produce a value of 22 if x=22.9:
  30. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…