SOmetimes it easiest just to start at the Sun tutorial. Looking at your post, I presume you are referring to the getCodeBase() and getDocumentBase() methods of java.applet.Applet? If so, you need to check the APIs to see what these methods do.
Sorry if this doesnt directly answer your question, but I think you will get more this way.
Could try harder
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad: