Assignment Operator in JavaScript | Example Program

An operator that is used to assign/update the value of a variable is called assignment operator in JavaScript. The most common assignment operator is equal operator “=”, which assigns the right-hand value to the left-hand variable. The general syntax is as follows: variable = value; // Here, a value can … Read more

JavaScript Keywords | List of Reserved Words

Keywords in JavaScript are pre-defined words that have specific meanings to the interpreter and that meanings cannot be changed. They are also called reserved words in JavaScript. JavaScript provides a set of reserved keywords that are the part of syntax in the JavaScript language. JavaScript’s keywords are used to perform … Read more

Java StringBuilder Class | Methods, Example

Java StringBuilder class represents a mutable sequence of characters (string). That is, we can change (or modify) the content of StringBuilder, without creating a new StringBuilder object. In other simple words, we can add or delete a new content into StringBuilder object, without creating a new StringBuilder object. Whereas in … Read more

StringBuffer Methods in Java | Example Program

In addition to be inherited from the Object class methods, StringBuffer class also provide some useful methods in Java. They are as: append() capacity() charAt() delete() ensureCapacity() getChars() indexOf() insert() length() reverse() and many more. So, let’s understand each StringBuffer class method one by one with example programs. Append Methods … Read more