How to check the size of strings?
The size of strings in java can be checked by using the length() function.