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 are the disadvantages of using inner classes?
What is the difference between Java and C++?
0 Answers Integreon, TCS, ZS Associates,
what is session in java?
0 Answers Seventhsense Technologies,
When is the garbage collection used in Java?
What is array class in java?
Explain exception chaining in java?
Whats the difference between notify() and notifyall()?
Does java support function overloading, pointers, structures, unions or linked lists?
What is the finalize method do?
Can bool be null?
what models are available for event handling?
What is meant by class and object in java?