Home

What is the correct answer?

4

Which of the following methods belong to the String class?

A. length()

B. compareTo()

C. substring()

D. all of the them

Correct Answer :

D. all of the them


Related Questions

Which of the following will produce a value of 22 if x=22.9: What is wrong in the following class definitions? abstract class… Which of the following methods can be used to remove a component from… In a single Servlet class we can use____________ A thread can make second thread ineligible for execution by calling the… JSP files creates ________________ An EJB is a server-side component that encapsulates the business logic… The name of a Java program file must match the name of the class with… In RMI before running the client program we must start RMI Registry. All the bitwise operators have the same level of precedence in Java. Which of the following are not keywords? To delete a file, we can use an instance of class file. Any method in a supper class can be over ridden in its subclass. If you want to assign a value of 99 to the variable year, then which of… Message-Driven beans act as a listener for the Java Message Service API,… 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? A class may be both abstract and final. When X is a positive number the operations x>> 2 and x>>>2… putValue(...) method takes _____________________- Throwing an exception always causes program termination. Connection, Statement are interfaces and ResultSet is a class. Which of the following control expressions are valid for an if statement? Which of the following represent legal flow control statements? All methods in an abstract class must be declared abstract. Given the codeString s = new String("abc");Which of the following calls… A static class method can be invoked by simply using the name of the method… Consider the following class definitions: class maths { student student1;… forName() is a static factory method When we invoke repaint () for a Component, the AWT invokes the method: