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. forName() is a static factory method
  2. The import statement is always the first no comment statement in a Java program files.
  3. We can add more than one class(es) at the time of compilation Java Beans.
  4. Which of the following methods can be used to remove a component from the display?
  5. The check box group class is a subclass of the component class.
  6. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  7. Any method in a supper class can be over ridden in its subclass.
  8. When the string objects are compared with ==, the result is true If the strings contain the same values.
  9. A final class may not have any abstract method.
  10. We would like to make a member of a class visible in all subclasses regardless of what package they…
  11. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  12. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  13. It is perfectly legal to refer to any instance variable inside of a static method.
  14. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  15. The default case is always required in the switch selection structure.
  16. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  17. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  18. Session bean
  19. Which are the valid ways to create DataInputStream streams?
  20. Which of the following statements are true?
  21. What is java -g used for?
  22. A package is a collection of
  23. Every method of a final in class is implicitly final.
  24. Which key word can protect a class in package from accessibility by the classes outside the package?
  25. A method declared as static can not access non-static class members.
  26. Which of the following will produce a value of 10 if x = 9.7?
  27. The methods wait() and noify() are defined in
  28. The concept of multiple inheritance is implemented in Java by
  29. Objects are passed to a method by use of call-by-reference.
  30. Consider the following class definition.Class Student extends String{}What happens when we try to compile…