Please submit the coding in java for banking system
Import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Account extends Remote {
// Add method to return master BankManager
public BankManager getBankManager()
throws RemoteException;
// Add method to return Client of this account
public Client getClient()
throws RemoteException;
// Add method to return balance of this account
public long getBalance()
throws RemoteException;
// Add method to withdraw cash from this account
public long getCash (long amount)
throws NoCashAvailableException, RemoteException;
}
import java.rmi.RemoteException;
public interface Account extends Remote {
// Add method to return master BankManager
public BankManager getBankManager()
throws RemoteException;
// Add method to return Client of this account
public Client getClient()
throws RemoteException;
// Add method to return balance of this account
public long getBalance()
throws RemoteException;
// Add method to withdraw cash from this account
public long getCash (long amount)
throws NoCashAvailableException, RemoteException;
}