B
Q. What will be the output? String str1 = "abcde"; System.out.println(str1.substring(1, 3));
substring() method has two variants and returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string or upto endIndex - 1 if second argument is given.
You must be Logged in to update hint/solution
Q. In Java, can a subclass overload a method from its superclass?
Q. Program which executes applet is known as
Q. What is use of interpreter?
Q. Which of these methods is used to know the full URL of an URL object?
Q. Which of these class encapsulate the runtime state of an object or an interface?
Q. What are beans in the concept of Spring or what are spring beans?
Discusssion
Login to discuss.