1

I want to get a view of my code once it is converted into binary after I hit Run

public class HelloWorld {

 public static void main(String []args){
    System.out.println("Hello World");
 }
}

Is there any IDE Available?

1 Answer 1

2

When you compile your HelloWorld.java, you'll get a HelloWorld.class file, and that's the binary. If you use e.g. the Eclipse IDE, you'll typically find these files in a "bin" folder.

Take the hex/binary viewer of your choice, and look into that file. You'll probably find The Java Virtual Machine Specification useful when analysing the file contents.

Sign up to request clarification or add additional context in comments.

1 Comment

Or run javap -p -c (optionally add -l -v to taste) on the compiled class (either in a file or in a jar) for a convenient decode. But you'll still need to understand the JVM spec, which BTW has been updated, see docs.oracle.com/javase/specs/index.html .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.