Memory Allocation and Layout
Things that help security in Java
-
Memory layout decisions are not made at compile time
-
Compiled code references memory via symbolic "handles"
-
Late binding of structures - programmers can't interfere
with physical memory layout of classes
-
Use of garbage collection -- explicit free provides some
roundabout methods of illegal type casting
But Java still has a potential weakness
-
But programmer can find out integer address of an object
via hashCode() method in all objects.

