Question: public class Accumulator { private double total: private int N: } public class Transaction { private final String who: private final Date when: private final

public class Accumulator { private double total: private int N: } public class Transaction { private final String who: private final Date when: private final double amount: } public class FixedCapacityStackOfstrings { private String[] a = new String[C]: // stack entries private int N: // size } class INode implements Comparable { protected byte [] name: protected long modificationTime: protected long accessTime: } class INodeFile extends INode { private long header: private Block [] blocks: } class INodeDirectory extends INode { private INodeFile [] children: } public class Block implements Comparable { private long blockId: private long numBytes: private long generationStamp: } Please answer this question with at least 50 words: Assuming a 64-bit CPU architecture and Java 7, given the class definitions described in Listing 1 compute the amount of memory needed by each of the following objects considering their respective assumptions: (a) Accumulator. (b) Transaction, assuming references to String and Date objects. Note that in all of your calculations you should assume a 64-bit CPU architecture and Java 7. Don't forget to consider the padding in your calculation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
