Tip

Chapter 2: Decompiling classes

In an ideal world, decompilation would probably be unnecessary, except when learning how other people who don't like to write good documentation implemented a certain feature. In the real world, however, there are often situations where a direct reference to the source code can be the best, if not the only, solution. Here are some of the reasons to decompile:

  • Recovering the source code that was accidentally lost
  • Learning the implementation of a feature or trick
  • Troubleshooting an application or library that does not have good documentation
  • Fixing urgent bugs in third-party code for which no source code exists
  • Learning to protect your code from hacking

In this chapter from the book Covert Java: Techniques for Decompiling, Patching, and Reverse Engineering, by Alex Kalinovsky, you'll learn:

  • How to determine when to decompile (page 13)
  • What the best decompilers are (page 14)
  • How to decompile a class (page 16)
  • What makes decompiling possible (page 22)
  • Potential problems with decompiled code (page 23)

Don't forget to take the quick quiz at the end of the chapter to test your reading comprehension.

Click here to download this free book chapter.

This was first published in June 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.