Answer to Question #71930 in Java | JSP | JSF for dsg

Question #71930
How can I open a .class file?
1
Expert's answer
2017-12-18T03:19:39-0500
A class file is in binary format. You can open and view it by any text editor like notepad in windows and vi in mac.
But to get the Java code from a class file, you can either use following:
Use a decompiler like Java Decompiler. For example:
javap –c YourClass. Then you will see disassembled source code

Use an IDE like Intelli-j with built-in decompiler
Use online decompiler such as www.javadecompilers.com
Now you can read the class file. But it will not be exact same as the source code from which it was compiled.
Source: https://www.quora.com/How-can-I-open-class-files-in-Java

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS