What is the output of this code when it is executed? public…
What is the output of this code when it is executed? public class Account { private static int accountCounter = 0; // Static counter for account IDs private double balance; // Account balance private int id; // Unique account ID public Account() { accountCounter++; this.balance = 300; // Default starting balance this.id = accountCounter; } public void deposit(double amount) { balance += amount; } public void withdraw(double amount) { balance -= amount; } public double getBalance() { return balance; } public void setBalance(double balance) { this.balance = balance; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String displayInfo() { return “The balance of account is: ” + balance; }} // ———————————————–// Controller Class// ———————————————– public class Controller { public static void main(String[] args) { Account account1 = new Account(); Account account2 = new Account(); account1.deposit(500); account2.deposit(1000); account1.withdraw(200); account2.withdraw(300); System.out.printf(“%s \n”, account1.displayInfo() ); }}