“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”
When the user wants to install the java game on his mobile, then it is enough for him to just download that game’s class file. For example, to install the cricket game on his mobile, the user has to download the cricket.class file, and not the cricket.java file. The cricket.class file is obtained after compiling the cricket.java file.
Obfuscation is encrypting of the java class file to prevent piracy and to compress the file.
Java byte code is generated after compiling the java program. A competitor can download our j2me application and then using java decompiler software (E.g. cavaj); can decompile the class file which he downloaded to get the java source code. To prevent this we can obfuscate ( that is encrypt) the java class file so that even after decompiling he cannot get the java source file. Another advantage is that the obfuscated code occupies less space then the original class file.
When the user wants to install the java game on his mobile, then it is enough for him to just download that game’s class file. For example, to install the cricket game on his mobile, the user has to download the cricket.class file, and not the cricket.java file. The cricket.class file is obtained after compiling the cricket.java file.
Obfuscation is encrypting of the java class file to prevent piracy and to compress the file.
Java byte code is generated after compiling the java program. A competitor can download our j2me application and then using java decompiler software (E.g. cavaj); can decompile the class file which he downloaded to get the java source code. To prevent this we can obfuscate ( that is encrypt) the java class file so that even after decompiling he cannot get the java source file. Another advantage is that the obfuscated code occupies less space then the original class file.
Leave an Answer/Comment