Home

When present, package must be the first no comment statement in the file.

A. True

B. False

You can do it
  1. It is perfectly legal to refer to any instance variable inside of a static method.
  2. Which of the following methods belong to the String class?
  3. The default case is always required in the switch selection structure.
  4. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  5. class.forName(...) creates an instance of java ODBC driver
  6. Submit button always fires doPost(...)
  7. EJBs can be of the following type(s)None of the above
  8. JdbcOdbcDriver is an object of Object class
  9. putValue(...) method takes _____________________-
  10. All methods in an abstract class must be declared abstract.
  11. A class may be both abstract and final.
  12. When present, package must be the first no comment statement in the file.
  13. Which of the following control expressions are valid for an if statement?
  14. We can add more than one class(es) at the time of compilation Java Beans.
  15. forName() is a static factory method
  16. Any method in a supper class can be over ridden in its subclass.
  17. Given the codeString s = new String("abc");Which of the following calls are valid?
  18. Which of the following command lines options generates documentation for all classes and methods?
  19. We would like to make a member of a class visible in all subclasses regardless of what package they…
  20. executeUpdate automatically updates data because___________
  21. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  22. Which of the following methods can be used to remove a component from the display?
  23. A method declared as static can not access non-static class members.
  24. In the code below, what data types the variable x can have?
  25. Declaring a method synchronized guarantees that the deadlock cannot occur.
  26. The import statement is always the first no comment statement in a Java program files.
  27. The length of a string object 's1' can be obtained using the expression s1.length.
  28. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  29. Which of the following will produce a value of 10 if x = 9.7?
  30. A constructor must always invoke its supper class constructor in its first statement.