Substring()

Let us understand Substring() method This method returns a new string which is a part of the given string. It begins with a character at the specified index and extends to either end of string or specified end index. There are 2 overloaded methods of substring public String substring(int startIndex) public String substring(int startIndex, int […]

Share this article on

toString() method

This method returns the string representation of the object which invokes this method. This method is mainly used to represent the java object into a meaningful string. This is mostly required while logging the object information into logger file. This method is defined in Object class and any other class in java(apparently subclass of Object […]

Share this article on
< Previous Next >