what is default value of character in java
if you are not, then Java runtime assigns default value to it. and when you try to access the variable you get the default value of that variable. Following table shows variables types and their default values. Here, char primitive default value is \u0000, which means blank/space character. When you have the variable of reference types then it gets the null as default value. In following code listing, variables are declared as instance fields. Same is applied for static fields too.