if memory is not allocated to classes and only to objects, then what ismeaning of writting java classname, when we run a java programe. as we knowthat the main thread is called first, then how this thread is called?
in my view, when we interpret a java class(java [classname]),the jvmresponsibility is to convert the .class file into .exe file and loadsinto the ram and executes it and deletes the .exe file.for converting .class to .exe jvm internally uses a compiler likejit(just in time)to load it into the ram pseudo interpreter is used by the jvminternally.