Differences between static and dynamic memory alloacation in the context of java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thatos
    New Member
    • Aug 2007
    • 105

    #1

    Differences between static and dynamic memory alloacation in the context of java

    I searched about this from the net and the only difference which I could get was that static memory allocation is determined by the compiler whereas dynamic memory allocation is determined during run-time. Can you please tell were can I get information about this like a specific website?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    You have to read the VM Specification for that and possibly the JLS (Java Language
    Specification). Google knows where to find those documents.

    kind regards,

    Jos

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Any Java textbook will discuss the lifetime of variables and objects. Don't forget about local variables, too!

      Comment

      Working...