EJB: Is it possible to invoke Runtime.gc() in an EJB?

Is it possible to invoke Runtime.gc() in an EJB?

- The call will most likely be ignored.

- The functions like garbage collection that are system level should be left for the container.

- Hence, you shouldn’t do that, as implementation would decide the result.
20 J2EE Interview Questions and Answers - Freshers, Experienced
J2EE Interview questions and answers for freshers and experienced, j2ee interview faq - In this section we have listed all those questions and answers that might be asked during J2ME interview.
J2EE application
J2EE application - Explain the components of J2EE architecture, Explain the Java Servlets. Explain its lifecycle, Explain JSP, Describe JSP lifecycle.
J2EE web container
J2EE web container - overview of web container, Java Servlet programming model, deployment descriptors...
Post your comment