StringBuffer sb = new StringBuffer('c'); The char will be converted into int to intialize StringBuffer size.