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 is final int?
What are different types of expressions?
When we will use an Interface and Abstract class?
What does @override mean?
How do you escape json?
What is the purpose of the system class in java programming?
what is the difference between java and j2ee... is that can i work j2ee on net beans IDE 6.0
How do you define a singleton class?
in a constructor what happen if u call super and this in the same class? i know that it is not possible to call both in the same one? if we call what will happen?
Is there is any error if you have multiple main methods in the same class?
What is the significance of continue jump statement? Explain with an example.
Can we have 2 main methods in java class?