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
How much ram can a 64 bit processor theoretically?
What is jit compiler in java?
What does null mean in java?
What do you know about the garbage collector in java?
how to create multithreaded program? : Java thread
What are the four versions of java?
How big is a 32 bit integer?
what is the messsage u r going to get from an objectoriented programing?
What are inbuilt functions in java?
What advantage do java's layout managers provide over traditional windowing systems?
What's a method in programming?
Explain the difference between jvm and jre?
What is the use of object and class classes?
What is comparator in java?
How do you check if two given string are anagrams?