public class Test {
static char ch;
public static void main(String[] args) {
String str = Character.toString(ch);
System.out.println("abc" + str + "def");
}
}
Console output : abc
Expected output : abc def
Since default char value is 0(space). Any concept I'm missing here?