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

A. True

B. False

You can do it
  1. With javadoc, which of the following denotes a javadoc comment?
  2. Declarations can appear anywhere in the body of a Java method.
  3. Java is fully object oriented programme.
  4. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  5. Which of the following control expressions are valid for an if statement?
  6. Which of the following command lines options generates documentation for all classes and methods?
  7. executeUpdate(------------) returns ___________
  8. A static class method can be invoked by simply using the name of the method alone.
  9. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  10. Which are the valid ways to create DataInputStream streams?
  11. Give file is a file object, which of the following are legal statements to create a new file.
  12. It is perfectly legal to assign a subclass object to a supper class reference.
  13. Which of the following will produce a value of 22 if x=22.9:
  14. The setBackground() method is part of the class
  15. Connection, Statement are interfaces and ResultSet is a class.
  16. Every method of a final in class is implicitly final.
  17. EJBs can be of the following type(s)None of the above
  18. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  19. Which of the following methods can be used to draw the outline of a square?
  20. What does the following line of code do?TextField text=new TextField(10);
  21. Which of the following statements are true?
  22. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  23. Objects are passed to a method by use of call-by-reference.
  24. An individual array element that is passed to a method and modified in that method will contain the…
  25. JdbcOdbcDriver is an object of Object class
  26. The length of a string object 's1' can be obtained using the expression s1.length.
  27. The name of a Java program file must match the name of the class with the extension Java.
  28. Given the codeString s = new String("abc");Which of the following calls are valid?
  29. We can over load methods with differences only in their return type.
  30. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.