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. We can over load methods with differences only in their return type.
  2. A variable declared inside the for loop control can not be referenced out side the loop.
  3. Which of the following statements are valid array declarations?
  4. The name of a Java program file must match the name of the class with the extension Java.
  5. A package is a collection of
  6. A catch can have comma-separated multiple arguments.
  7. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  8. Give file is a file object, which of the following are legal statements to create a new file.
  9. In RMI we invoke client method from remote server
  10. Which key word can protect a class in package from accessibility by the classes outside the package?
  11. Which are the valid ways to create DataInputStream streams?
  12. We would like to make a member of a class visible in all subclasses regardless of what package they…
  13. Consider the following class definitions: class maths { student student1; } class student { String name;…
  14. Which javadoc tag is used to denote a comment for methods parameters?
  15. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  16. The break statement is required in the default case of a switch selection structure.
  17. When the string objects are compared with ==, the result is true If the strings contain the same values.
  18. When present, package must be the first no comment statement in the file.
  19. Session bean
  20. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  21. Connection, Statement are interfaces and ResultSet is a class.
  22. The name of the RMI compiler is ___________
  23. What does the following line of code do?TextField text=new TextField(10);
  24. Which of the following are keywords?
  25. The import statement is always the first no comment statement in a Java program files.
  26. The setBackground() method is part of the class
  27. A string object can not be modified after it is created.
  28. The use of protected keyword to a member in a class will restrict its visibility as follows:
  29. An individual array element that is passed to a method and modified in that method will contain the…
  30. Submit button always fires doPost(...)