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 |
Is java a digit method?
Name four container classes.
What is the Scope of Static Variable?
What does function identity () do?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is palindrome in java?
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
Is finalize() similar to a destructor?
What is printwriter in java?
What are access modifiers?
What class allows you to read objects directly from a stream in java programming?
What is a lambda expression ? What's its use ?