First of all, if this is not the right place, please move it.
I was wondering if it was possible to put a file(lets say a java class file) in a seperate directory where no one can access it, but make it still show up on an HTML document. Is the public html directory protected enough that they can't access files?