Home

What is the correct answer?

4

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

A. True

B. False

Correct Answer :

B. False


Related Questions

The methods wait() and noify() are defined in Which of the following string can be used as mode string for creating… EJBs can be of the following type(s)None of the above Which of the following are not keywords? JdbcOdbcDriver is an object of Object class In order to connect to a database through java program we must create… Which of the following methods can be used to draw the outline of a square? Which of the following classes are available in the java.lang package? Throwing an exception always causes program termination. What is wrong in the following class definitions? abstract class… The programmer must explicitly create the system .in and system .out objects. Members of a class specified as private are accessible only to the methods… Frames and applets cannot be used together in the same program. When we invoke repaint () for a Component, the AWT invokes the method: class.forName(...) creates an instance of java ODBC driver The modulus operator (%) can be used only with Integer operands. Which exception is thrown by the read() method of InputStream class? Servlet can have ___________ In RMI we invoke client method from remote server It is perfectly legal to refer to any instance variable inside of a static… Which of the following methods can be used to remove a component from… The setBackground() method is part of the class Which of the following keywords are used to control access to a class… Java always provides a default constructor to a class. The name of a Java program file must match the name of the class with… Message-Driven beans act as a listener for the Java Message Service API,… Consider the following class definitions: class maths { student student1;… Servlet has ___________ Declaring a method synchronized guarantees that the deadlock cannot occur. Which of the following statements are true?