Is it possible to view bytecode of Class file? [duplicate]

Yes. You can use the javap command that’s included with the JDK to see the byte code of a class. For example:

javap -c com.mypackage.MyClass

There are several libraries and tools that help you to work with Java bytecode, for example ASM and Jasmin.

Leave a Comment