Hello, as i know java source code is visible to ppl, i talk about Desktop Applets,
i'm interested to start learn Java/Web Developing, that i want to know is,
Can ppl see code of java applet in brwoser? like he can with Java Desktop Appis.
The .class file contains the compiled code, not the source. You can decompile that, but the result may or may not resemble the actual source. If the author has decided to obfuscate the code a decompile is useless.
... but if decompiled .class files are all you want, there's nothing to stop you downloading the .class (or .jar) files for the applet and decompiling them. You have access to the HTML that invokes the applet, so you know where to find the class files
.class file are binary machine code for a artificial machine called the Java Virtual Machine. Software to create a JVM is part of the Java runtime that you must install before you can run a Java program.
Just like with an a .exe, you can use a decompiler program to read the machine code and produce a "best guess" of what the source program might look like. Sometimes it's quite accurate, other times it looks like garbage.
If someone really wants to keep their code secret they use a process called "obfuscation", where the code is jumbled up and names are changed in such a way that it still produces the same result when you run it, but decompilation shows a confusing mess.
the only way to ever keep your source secret (there are deobfuscators, and a human could do it as well given time) is to never distribute anything except data.
That means running your system as a SAAS application, and only exposing some web services for your customers to call.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.