Basic Java for Testers | Ch-8 | String Class in Java

Reading time: 5 minutes

Previous Chapter >>>> Class Constructors in Java

What is String?

A String is a group of alphabets. It's a Class unlike datatypes  ‘int & char‘. String is one of the most important and commonly used class in Java and Selenium.
A String object can not be changed, once created i.e. it's an immutable class.

String Manipulations:

String class has got many methods used very frequently in Selenium Automation using Java.

Sample program illustrating String manipulations in Java: