Home

Which of the following statements are valid array declarations?

A. int number();

B. float average[];

C. double[] marks;

D. counter int[];

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. A catch can have comma-separated multiple arguments.
  2. Objects are passed to a method by use of call-by-reference.
  3. Which key word can protect a class in package from accessibility by the classes outside the package?
  4. It is perfectly legal to refer to any instance variable inside of a static method.
  5. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  6. Which of the following command lines options generates documentation for all classes and methods?
  7. The programmer must explicitly create the system .in and system .out objects.
  8. A variable declared inside the for loop control can not be referenced out side the loop.
  9. When the string objects are compared with ==, the result is true If the strings contain the same values.
  10. Which exception is thrown by the read() method of InputStream class?
  11. Which of the following statements are valid array declarations?
  12. The keywords reserved but not used in the initial version of Java re:
  13. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  14. The name of the RMI compiler is ___________
  15. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  16. In the code below, what data types the variable x can have?
  17. A method declared as static can not access non-static class members.
  18. Give file is a file object, which of the following are legal statements to create a new file.
  19. What is java -g used for?
  20. To delete a file, we can use an instance of class file.
  21. Servlet can have ___________
  22. A Java monitor must either extend thread class or implement Runnable interface.
  23. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  24. When we implement an interface method, it should be declared as public.
  25. DataInput is
  26. Every method of a final in class is implicitly final.
  27. A static class method can be invoked by simply using the name of the method alone.
  28. A class may be both abstract and final.
  29. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  30. Every call to wait has a corresponding call to notify that will eventually end the wafting.