Learning about Java bytecode and the JVM

前端 未结 6 493
孤独总比滥情好
孤独总比滥情好 2021-01-29 19:15

In a recent question asked recently my simple minded answer highlighted many of my misconceptions about Java, the JVM, and how the code gets compiled and run. This has created

6条回答
  •  一向
    一向 (楼主)
    2021-01-29 20:02

    For understanding Java/the JVM's architecture: read Wikipedia, the specs and the source code.

    For understanding how object-orientated code is done on a low level: try and emulate features like inheritance/polymorphism/encapsulation in a lower-level language like C.

    In C you can achieve the above through, for example, a combination of function pointers and nested structures.

提交回复
热议问题