Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why we can not force Garbage Collection?

Answer Posted / neeraj

Hi Ramesh
Sir Garbage collector is a thread and nothing can
pridict about the excecution time of a thread at runtime.
System.gc(); is a method to start that non user thread
explicitly.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we cast any other type to boolean type with type casting?

938


What is a programming object?

1082


Which arithmetic operations can result in the throwing of an arithmeticexception?

1005


What is the replace tool?

1137


What is thread synchronization in java?

880


Explain the significance of class loaders in bootstrap?

928


What is the final class?

1035


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

975


Write a program to show whether a graph is a tree or not using adjacency matrix.

1081


Why put method is used?

996


Which list does not allow duplicates in java?

914


Explain how to force the garbage collection in java.

953


What is array list in java?

1061


What is difference between adapter class and listener?

1014


What is the purpose of skeleton and stub?

1211