Learnerslesson
   JAVA   
  SPRING  
  SPRINGBOOT  
 HIBERNATE 
  HADOOP  
   HIVE   
   ALGORITHMS   
   PYTHON   
   GO   
   KOTLIN   
   C#   
   RUBY   
   C++   




String - length() Method


int length()


length(..) method is used to find the length of a String.


Example :



public class Test{
	public static void main(String[] arg){
		String firstString = "Hello"; 
		int length = firstString.length();	   
		
		System.out.println("The length of the String is : "+length);
	}
}