In the below Java Program, how many objects are eligible for garbage collection?
Answer Posted / 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 |
Post New Answer View All Answers
What is the function of compareto in java?
What does percent mean in java?
What do negative exponents mean?
How will you reverse a singly-link list?
Difference between Linked list and Queue?
What are the main uses of the super keyword?
What is the use of a conditional inclusion statement in Java ?
Write a program to find the whether a number is an Armstrong number or not?
What is backdrop?
How do you identify if jvm is 32-bit or 64-bit from java program?
What is the use of join method?
What is a loop java?
What is rmi and steps involved in developing an rmi object?
Can a class extend more than one class?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in