Use Javap to view class files

xiaoxiao2021-03-06  75

Java developers are familiar with using StringBuffer in a cycle instead of the series String objects to achieve optimal performance. However, most developers have never compared the difference between the bytecodes generated by the two methods. There is a tool called Java in the Java Development Kit (JDK) to tell you why do you have best performance.