OkN so I just got introduced to method getAppletContext() and apparently it reture. Reference to interface AppletContext. Which means you cancreat an objkct to reference this interface with the said method. Doesn't this directly conflict the rule where you can't directly instantiate an interface except through a class that impements the interface?
Also, I couldn't helpt but notice that interfacve AppletContext seems to have concrete methods? Cos when you use method showDocument on a object of type AppletContext, you don't provide a defualt implememtation. So where does the "contract signing" go on with the compiler ( the one that states you must provide a default implementation, since all interface methods are abstract)