Question: need help with these java questions .1)Customer [ ] clients; How many objects were created when executing the above line of code? 2) clients =
need help with these java questions
.1)Customer [ ] clients;
How many objects were created when executing the above line of code?
2) clients = new Customer[25];
How many objects were created when executing the above line of code?
3) What is the result of executing the following line of code:
System.out.println(clients[[3].getBalance()); // the Customer class has a getBalance() method
4) Write the code to create the 25 Customer objects using the default constructor and assign each slot in the array the address of a Customer object,
5) Write the code to print the balance of the 5th Customer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
