Java String isEmpty()The java string isEmpty() method checks if this string is empty or not. It returns true, if length of string is 0 otherwise false. In other words, true is returned if string is empty otherwise it returns false. The isEmpty() method of String class is included in java string since JDK 1.6. Internal implementationSignatureThe signature or syntax of string isEmpty() method is given below: Returnstrue if length is 0 otherwise false. Since1.6 Java String isEmpty() method exampleTest it Nowtrue false Java String isEmpty() Method Example 2String s1 is empty Javatpoint
Next TopicJava String join()
|