StringBuilder builder1 = new StringBuilder() ;
StringBuilder builder2 = new StringBuilder(0 );
StringBuilder builder3 = new StringBuilder(1 00);
System.out.prin tln(builder1.ca pacity());
System.out.prin tln(builder2.ca pacity());
System.out.prin tln(builder3.ca pacity());
16
0
100
can any of tell me that why it give 16 output when first stringbuilder is call because it is empty string builder........ ..and what capacity do
StringBuilder builder2 = new StringBuilder(0 );
StringBuilder builder3 = new StringBuilder(1 00);
System.out.prin tln(builder1.ca pacity());
System.out.prin tln(builder2.ca pacity());
System.out.prin tln(builder3.ca pacity());
16
0
100
can any of tell me that why it give 16 output when first stringbuilder is call because it is empty string builder........ ..and what capacity do
Comment