How to create empty string in java

In this tutorial you will learn how to create empty string in Java. String is primitive data type in java programming and used to stored characters value.

Creating an empty string sound us confusing but sometime we required to create an empty string in java, because in future we required to used that string variable.

You can create empty string by initialing String variable containing no character.


 String empty_string = ""

Was this article helpful?

1 thought on “How to create empty string in java”

  1. Pingback: social signals

Leave a Comment