Java - Interview

Java Interview Java Script

  • Home
  • Multithreading
  • Hibernate
  • Spring
  • Android
  • Miscellaneous
  • TrackWise
    • TrackWise Tutorial
    • TrackWise Interview
  • SCJP
    • Object
    • Abstract
    • Array
    • Class
    • Constructor
    • Exception
  • Interview
    • Java
    • Spring
    • Hibernate
    • JSF
    • PL / SQL
    • JSP / Servlet
    • Web Services
    • Designing Patterns
    • Others
  • >>>
    • ERROR
  • Offensive Security
  • Struts 2
  • JSF
  • PHP
  • JDBC
  • JAVA
  • AWS
  • KOTLIN
  • Web Services

Monday, 4 July 2016

How can you force garbage collection?

You can’t force GC, but could request it by calling System.gc(). JVM does not guarantee that GC will be started immediately.
Posted by DharmaRaj at 14:02
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

DharmaRaj
View my complete profile

Search This Blog

Blog Archive

  • ►  2017 (28)
    • ►  August (8)
    • ►  July (20)
  • ▼  2016 (16)
    • ►  November (2)
    • ▼  July (14)
      • State the significance of public, private, protect...
      • What is the purpose of finalization?
      • Can an anonymous class be declared as implementing...
      • Java Interview Questions
      • If you’re overriding the method equals() of an obj...
      • You can create an abstract class that contains onl...
      • What’s the difference between a queue and a stack?
      • How can a subclass call a method or a constructor ...
      • What’s the main difference between a Vector and an...
      • Can an inner class declared inside of a method acc...
      • Does it matter in what order catch statements for ...
      • Can you call one constructor from another if a cla...
      • What’s the difference between the methods sleep() ...
      • How can you force garbage collection?
  • ►  2015 (178)
    • ►  September (64)
    • ►  February (114)
Simple theme. Powered by Blogger.