exercises java datastructures net memory management in order to implement any data structure on an actual computerwe need to use computer memory computer memory is simply sequence of memory wordseach of which usually consists of or bytes (depending on the computerthese memory words are numbered from to where is the number of memory words available to the computer the number associated with each memory word is known as its address thusthe memory in computer can be viewed as basically one giant array of memory words using this memory to construct data structures (and run programsrequires that we manage the computer' memory to provide the space needed for data--including variablesnodespointersarraysand character strings-and the programs the computer is to run we discuss the basics of memory management in this section stacks in the java virtual machine java program is typically compiled into sequence of byte codes that are defined as "machineinstructions for well-defined model--the java virtual machine (jvmthe definition of the jvm is at the heart of the definition of the java language itself by compiling java code into the jvm byte codesrather than the machine language of specific cpua java program can be run on any computersuch as personal computer or serverthat has program that can emulate the jvm interestinglythe stack data structure plays central role in the definition of the jvm the java method stack stacks have an important application to the run-time environment of java programs running java program (more preciselya running java threadhas private stackcalled the java method stack or just java stack for shortwhich is used to keep track of local variables and other important information on methods as they are invoked during execution (see figure