Java Trivia

I saw an old timer ask what the first four bytes of a Java class file are. Who knows? Who cares? It turns our the answer is 0xCAFEBABE. I tell you what. That does not seem to be a very important fact, unless you are trying to clone javac.

Well this random piece of trivia does not seem relevant to the world of Java programming. However it is a neat way to identify Java class files (aside from the .class extension). Perhaps this is more of use to file scanners and such.

Perhaps this is an invitation to break out a hex file view and see what is really in those .class files.