---
title: "What are Java String class method?"  
description: "What are Java String class method?"  
author: "Devesh Kumar Singh"  
published: 2015-11-20  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/22908/what-are-java-string-class-method  
category: "java"  
tags: ["java", "class", "string"]  
reading_time: 1 minute  

---

# What are Java String class method?

The java.lang.String class provides a lot of methods to work on string. By the help of these methods, we can perform operations on string such as trimming, concatenating, converting, comparing, replacing strings etc.

Java String is a powerful concept because everything is treated as a string if you submit any form in window based, web based or mobile application.

## Answers

### Answer by Devesh Kumar Singh

The java.lang.String class provides a lot of methods to work on string. By the help of these methods, we can perform operations on string such as trimming, concatenating, converting, comparing, replacing strings etc.

Java String is a powerful concept because everything is treated as a string if you submit any form in window based, web based or mobile application.


---

Original Source: https://www.mindstick.com/interview/22908/what-are-java-string-class-method

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
