Loading topic
javac and java, and that you know classes, methods, static members, and exceptions. The JVM does not run .java files. It runs .class files, which have a fixed binary layout. Knowing that layout explains the errors the JVM report5 min readjavac and java. It also assumes you know what a class file is, as covered in the previous chapter. You should be comfortable reading the output of javap -c.6 min readjava command. It covers the memory areas the JVM sets up while a program runs. It doesn't cover garbage collection algorithms or the 7 min readjavac and java. It also assumes you know that the constant pool is a per-class table of names and literals. Here you learn to disassemble a class with javap and trace what its instructions do to the operand stack and local variables.5 min readjavap -c output (see the previous chapter on bytecode) and know that each Java thread has its own stack. You will learn what a frame holds, how bytecode moves values between locals and the operand stack, and how arguments and return values cross a method cal5 min readjavap -c output, know what the operand stack and local variables of a frame are, and know that the constant pool holds symbolic references. Here you will see how the JVM turns a method call in source code into one of five invocation instructions, and what ea5 min readjavac and java. It also assumes you know what static members and exceptions are, and that you have seen the class file layout and constant pool from earlier chapters. Here you get the big picture of how a class goes from bytes to us6 min readjavac and java, and understand static members and exceptions. Parent delegation, the rule that decides which loader ge6 min readjavac and java, know what a class and a static member are, and have read the previous chapter on the bootstrap, platform and application class loaders. Here you will see how those loaders cooperate when a class is requested, why the JVM works this way, and where 5 min readjavac and java, and that you have read the earlier chapters on the class file format, the constant pool and the class loading lifecycle. You should know that a loaded class is a Class object backed by bytes from a .class file, a6 min readjavap output. It also assumes you know the loading and linking phases from earlier chapters: a class is loaded, then verified, prepared and resolved. Initialization is the last phase. It is the point where the JVM runs your static initializers.5 min readjavac and java. Here you will see how the JVM decides that two classes are the same class, and5 min readjavap -c output, know that each method call gets a stack frame, and can run java with command-line flags. It describes the HotSpot JVM th6 min read