Answer Posted / pradeep panwar
Hi All....
yea thats true that we can't force for Garbage Collection.
We can send a request by system.gc(); at any time but its
not sure that garbage collection takes place at that time.
It depends on memory. So we cant forcr fot GC either
sending the explicit request.
can catch me on +91-9899954354
| Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Can an object be null?
What is the difference between jdk, jre, and jvm?
What is singleton math?
What is java regex?
What are heap memory and stack memory and what are memory tables.
What is widening and narrowing in java? Discuss with an example.
How long will it take to learn java?
What is derived datatype?
What is the use of keywords in java?
What is the point of polymorphism java?
What is a java lambda expression?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
Explain a few methods of overloading best practices in java?
What does compareto () do in java?
worst case complexities of Quick sort and Merge sort.