This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi Bharati, I don't know whether this question should be in the programmer certification or not , anyway coming to your question,you can convert a .class file to a .java file using decompilers and the most commonly used is the decompiler mocha. But i guess if you want to decompile a commercial java application then it may not work because they use something called obfuscators whereby the source code produced by a decompiler is much less readable.By the way Mocha is a shareware and you can dowload and use it.Hope this helps.
Yes.. u can convert the .class to .java files. There are freewares available. Also, to counter this one, there are special softwares (I think these are called Obfuscators).. which kind of "encrypt" your .class file so that the decompilers don't give good results. If you want to have a look at the .class file format you can see one at www.vijaymukhi.com. After that maybe you will write one decompiler p.s. Vijay Mukhi's site also has a link to a Decompiler.. Check it out..
[This message has been edited by Anand Iyer (edited June 14, 2000).]