Home

The length of a string object 's1' can be obtained using the expression s1.length.

A. True

B. False

You can do it yup
  1. Which of the following methods belong to the String class?
  2. What is java -g used for?
  3. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  4. When present, package must be the first no comment statement in the file.
  5. Which of the following will produce a value of 10 if x = 9.7?
  6. Which javadoc tag is used to denote a comment for methods parameters?
  7. The break statement is required in the default case of a switch selection structure.
  8. With javadoc, which of the following denotes a javadoc comment?
  9. To delete a file, we can use an instance of class file.
  10. When the string objects are compared with ==, the result is true If the strings contain the same values.
  11. The name of the RMI compiler is ___________
  12. EJBs can be of the following type(s)None of the above
  13. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  14. Which of the following are the wrapper classes?
  15. The setBackground() method is part of the class
  16. It is perfectly legal to refer to any instance variable inside of a static method.
  17. In order to connect to a database through java program we must create _______-
  18. Which of the following methods can be used to change the size of a size() *resize()
  19. Which of the following control expressions are valid for an if statement?
  20. Which of the following are not keywords?
  21. executeUpdate(------------) returns ___________
  22. Which of the following represent legal flow control statements?
  23. The keywords reserved but not used in the initial version of Java re:
  24. Session bean
  25. It is an error to have a method with the same signature in both the super class and its subclass.
  26. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  27. The programmer must explicitly create the system .in and system .out objects.
  28. We would like to make a member of a class visible in all subclasses regardless of what package they…
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. Which of the following represent legal flow control statements?