String字符串性能优化的几种方案( 九 )

{//    0    0:aload_0//    1    1:invokespecial   #1   <Method void Object()>//    2    4:returnpublic static void main(String args[
)
{String s = \"\";//    0    0:ldc1            #2   <String \"\">//    1    2:astore_1Random rand = new Random();//    2    3:new             #3   <Class Random>//    3    6:dup//    4    7:invokespecial   #4   <Method void Random()>//    5   10:astore_2for(int i = 0; i < 10; i++)//*   6   11:iconst_0//*   7   12:istore_3//*   8   13:iload_3

推荐阅读