¡@

Home 

java Programming Glossary: astore

How does the String class override the + operator?

http://stackoverflow.com/questions/11408427/how-does-the-string-class-override-the-operator

lead to the very same bytecode L0 LINENUMBER 23 L0 LDC cip ASTORE 1 L1 LINENUMBER 24 L1 LDC ciop ASTORE 2 cip ciop L2 LINENUMBER.. 23 L0 LDC cip ASTORE 1 L1 LINENUMBER 24 L1 LDC ciop ASTORE 2 cip ciop L2 LINENUMBER 25 L2 NEW java lang StringBuilder DUP.. java lang StringBuilder.toString Ljava lang String ASTORE 3 new StringBuilder cip .append ciop .toString L3 LINENUMBER..

Which is more efficient, a for-each loop, or an iterator?

http://stackoverflow.com/questions/2113216/which-is-more-efficient-a-for-each-loop-or-an-iterator

java util List.iterator Ljava util Iterator ASTORE 3 GOTO L2 L3 ALOAD 3 INVOKEINTERFACE java util Iterator.next.. Ljava lang Object CHECKCAST java lang Integer ASTORE 2 ALOAD 2 INVOKEVIRTUAL java lang Integer.toString Ljava lang.. java util List.iterator Ljava util Iterator ASTORE 2 GOTO L7 L8 ALOAD 2 INVOKEINTERFACE java util Iterator.next..

Java: Multi-dimensional array vs. One-dimensional

http://stackoverflow.com/questions/2512082/java-multi-dimensional-array-vs-one-dimensional

translated into BIPUSH 50 BIPUSH 50 MULTIANEWARRAY int 2 ASTORE 1 SIPUSH 2500 NEWARRAY T_INT ASTORE 2 so as you can see the.. MULTIANEWARRAY int 2 ASTORE 1 SIPUSH 2500 NEWARRAY T_INT ASTORE 2 so as you can see the JVM already knows that we are talking.. into ALOAD 1 multi ILOAD 3 i AALOAD ILOAD 4 j BIPUSH 20 IASTORE ALOAD 2 single ILOAD 3 i BIPUSH 50 IMUL ILOAD 4 j IADD BIPUSH..