Answer Posted / vinay
Another way to call garbage collector :-
Runtime rt = Runtime.getRuntime();
rt.gc();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a nested structure?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
Is class forname reflection?
List types of storage classes in java?
What is the memory leak in java?
What is the purpose of using the java bean?
Is null in java?
Can we override a variable in java?
Explain importance of inheritance in java?
Explain what is encapsulation?
What is package private scope in java?
How can you make a class serializable in java?
How do you add an element to a hashset in java?
How to print nodes of a Binary tree?
What is difference overloading and overriding?