You are interfering with the loading process by creating instances, printing messages, etc. You cannot create instances, print messages, or anything. until after the class is loaded. This is what you are trying:-
“Is the class Foo loaded?”
“Well load it and then see whether it is loaded.”
You can try a static initialiser which prints a message similar to “class loaded”, but that is not necessarily accurate. To find whether such a technique is accurate, you would have to read the Java Language Specification, which tells you when classes are loaded.
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad: