This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Going through mock questions there are many on the security restrictions in applets. The questions will state the client needs to read/write files on the local drive or make network connections to addresses other than where the applet originated from and then ask could an applet do this? In some cases the answer is yes and in some cases no. Although most browser’s default settings will not allow applets to do these things, you can configure browsers to allow applets (both signed and unsigned) to do almost anything. (Indeed I was surprised to find that in IE I could change the security settings to allow unsigned applets to read/write/delete files and open connections to other network addresses). Therefore which is the right answer? Does it depend on how the question is worded? For instance, if it is phrased as ‘is this possible’ would you answer yes and if it was worded ‘is this suitable’, than would you answer no (it would be very unwise to grant unsigned applets such privileges). Has anybody got any good advice on how to answer these questions? Indeed, I find a lot of mock questions ambiguous, are the ones in the real exam better worded? Thanks Martin Sergeant SCJP SCWCD SCJD
My advise is - Don't worry . Most of the mock questions are very badly phrased. You seem to know the rules: Default behavior prohibit Applets to read/write local files, open connection not to their host etc.. If states otherwise (special policy) take a closer look, and just decide. I don't remember having any problems in the actual exam. Good Luck