Consider code that does the following:
- Creates a string array
bookNamesand an integer arraybookPages, both of length 1000. - Creates 1000 objects of the class
Bookwith a string memberbookInfocomposed usingbookNamesandbookPagesvalues of the same index. - Prints
bookInfoof all created book objects.
What can be cleaned up during the garbage collection process after each of the steps above? Assume that the program starts right before step 1 and terminates right after step 3 without performing any additional operations.