StringBuffer sb = new StringBuffer(\'A\'); System.out.println(\"sb = \" + sb.toString()); sb.append(\"Hello\"); System.out.println(\"sb = \" + sb.toS
U have used below mentioned constructor.
public StringBuffer(int capacity) Constructs a string buffer with no characters in it and the specified initial capacity. Parameters: capacity - the initial capacity.
public StringBuffer(int capacity)
Constructs a string buffer with no characters in it and the specified initial capacity.
Parameters: capacity - the initial capacity.
see the java doc u don't have any constructor which takes char input param.