How to decode .class files to .java files?

I just want to know that how can I decode .class files back to .java files?If anybody can tell, it will be of great help.
[135 byte] By [harmanjeetsa] at [2007-9-19]
# 1
Check out the jad java decompiler at http://kpdus.tripod.com/jad.html. It works fine ;)Patrick
lachpa at 2007-7-8 > top of java,Core,Core APIs...
# 2

On a related note, how can I make it such that this cannot be done?

I understand the format is not private so it's not impossible for someone to go backwards.

I'm also aware of some programs that alter your source to make it more difficult for people to understand after decompiling it.

Regards,

Nick G.

gianakas13a at 2007-7-8 > top of java,Core,Core APIs...
# 3
Seek out Java obfuscators.
DrClapa at 2007-7-8 > top of java,Core,Core APIs...
# 4
I have a great Java Decompiler, you can get it at: http://members.fortunecity.com/neshkov/dj.html
josh_is_losta at 2007-7-8 > top of java,Core,Core APIs...