In the below Java Program, how many objects are eligible for garbage collection?
Answer / nashiinformaticssolutions
In general, three items are acceptable for waste pickup; however, I am not familiar with the program.
When the program starts, the first object is generated, and when it ends, it is no longer required.
When the user enters their name, the second object is generated; it is no longer needed at the end of the application.
When the user enters their address, the third object is generated; it is no longer required at the end of the program.
| Is This Answer Correct ? | 0 Yes | 0 No |
What does substring mean?
What class allows you to read objects directly from a stream?
Can we have multiple classes in a single file?
Does java list allow null?
Can a static member function access member variable of an object?
why abstract class will have a constructor?
Which collection allows duplicate values in java?
What are parsing rules?
what is the difference between object and class
How many ways can we create the string object?
How many ways can you break a singleton class in java?
How strings are created in java?