Java Code
Assignment 4.
1. Review the following code snippet below.
2. List the order in which methods are pushed onto the stack and popped off the stack.
3. List the objects that would be stored on the heap during the program execution
Class WithdrawFunds {
void tempConversion() {
double Balance;
double WithDrawFundAmount;
isBalanceGood = CheckSufficentBalance();
if (isBalanceGood == TRUE)
//allow withdraw
Else
//Funds are insuffiencent
}
class AccountTest {
public static void main (String[] args) {
myAccount a1 = new myAccount();
myAccount a2 = new myAccount();
a1.CreateAccount();
a1.DepositFunds();
a1.WithdrawFunds();
myAccount[] = accountArray;
HighestAccountBalance(accountArray);
LowestAccountBalance(accountArray);
}
}