Table of Contents [hide]
String’s startsWith method checks if String starts with specific prefix. It returns boolean datatype.
When you run above program, you will get below output:
Method Signature:
String startsWith Example:
Please note that startsWith method is case sensitive as you can see in above example
Was this post helpful?
Let us know if this post was helpful. Feedbacks are monitored on daily basis. Please do provide feedback as that\'s the only way to improve.