Search code examples
javasecurityclassdecompiler

can we covert java .class into .java file then how java is called as a secure lang


Is there is any converter which convert our compiled .class (Abc.class) into .java(Abc.java). If we can do so then how we called as Java is secure language. Is there is any other way to convert our class into .java file

Am raising the question about the java security also please note that

thank you all


Solution

  • There are tools to decompile .class files, such as JAD http://en.wikipedia.org/wiki/JAD_(JAva_Decompiler)

    In that sense, I wouldn't say java is secure if you're distributing your class files. However, there are measures you can take such as using an obfuscator such as ProGuard (http://proguard.sourceforge.net/)