Category: Java

Following are the string comparison methods in java. 1. equals() method. String class overrides the equals ( ) method of the Object class. It compares the content of the two…

 StringBuffer class is the peer class of String. It enables us to create flexible length string allow us to perform manipulation on a string whenever we want.  Commonly used StringBuffer Methods: …

In java, the string is not a data type, However, Java has a String class.Java allows us to create a String class object for string handling. In java, strings are…

1. Searching a string String class provides indexOf ( ) method which searches for the specified character inside the string object. This method has been overloaded. If the search is successful, then…

Relational operators in java are used to check the relationship between two operands. Relational operators determines whether one operator is  greater than, less than, equal to, or not equal to…

In java, assignment operator is used to assign values to variables. Moreover this operator can also be used to assign object references. Example – Also, lets have a look on…

In Java, logical operators are used to check the logical between variables and values using && (And) , || (or) and !(not) operators. Operator Description of the operator && –…

In java, operators are the special symbol that performs operations like addition, subtraction, multiplication and many more on one-two or more operands. In java there are following types of operators…