Home Tutorialhelp Comment Dear Nijel, answer for How you can force the g

 
 

Comment

Vikash Prabodh
Dear Nijel, answer for How you can force the g,
February 13, 2007 at 2:15 PM

Dear Nijel,

answer for How you can force the garbage collection? is wrong. right??
we can force using

System.gc();
and
Runtime.getRuntime().gc();


no i think it is System.gc.Collect();
we have to use the Collect method to call it.




View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
; Q 14. How can I generate an array from a list ? Ans : The answer... use the equals method to make an exact match.    Q 3. How can I get...;, "myPassword"); Q 5. How can I implement the Class.forName 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
;    Q 1. How can I get the full path of Explorer.exe..., statements, rather than vendor-specific classes.    Q 6. How can I insert... iterator.   Q 7. How can I insert a new row between two others ? Ans 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
dynamically at runtime.    Q 4 : How can I call a constructor from... to make an exact match.       Q 15 : How can I get a class...;    Q 1 : How should I create an immutable class ? Ans 

Development process Questions

ffmpeg force overwrite
ffmpeg force overwrite  What is the command line option for ffmpeg force overwrite? Thanks   Hi, You can use "-y" parameter for ffmpeg force overwrite. Thanks 

Java Beginners

CoreJava
CoreJava  Sir, What is the difference between pass by value and pass by reference. can u give an example 

Development process Questions

Dear Sir I need to join u
Dear Sir I need to join u  Dear Sir i am santosh Rai from Saudi Arabia please make me understood how to join u and i have one question i want to working with you what is ur process for working with u please send me 

Java Interview Questions

corejava - Java Interview Questions
corejava  how can we make a narmal java class in to singleton class 

Java Beginners

how the answer is 13 can anyone explain plz
how the answer is 13 can anyone explain plz  public class that { public static void main(String arr[]) { int i=3; int j=1; while(i<4) { //j=i; i=i+j/2; } System.out.println(i 

Java Interview Questions

corejava - Java Interview Questions
singleton java implementation  What is Singleton? And how can it get implemented in Java program?  Singleton is used to create only one instance of an object that means there would be only one instance of an object 

Java Beginners

corejava - Java Beginners
corejava  how to retriving data from html to servlet?how send the data servlet to text.file   hai friend, By using FormBeans we can get the data from from html by servlet,because it follows Frontcontroler design 

Java Beginners

java.please answer this...
java.please answer this...   Q1).How we can write a complete JAVA program that computes the following summation formulas..? ??_(i=1)^n????i^2=?? (n^(2 ) ??(n+1)??^2)/4 

Java Beginners

Clarify my last question's answer - Java Beginners
Clarify my last question's answer  Dear expert, I've tried out... how your solution is giving me the matching that I hope to do. Netbean Ide... and the qualifications and subjects that the tutors can teach. Hope to have your 

HTML Questions

How many qusetions can you ask?
How many qusetions can you ask?  Hi I was very impressed following my very first question I asked regarding some coding. However I am not sure why... complex or just a case of somebody having the inclination and time to answer. I 

PHP Questions

php brute force code.. hlp plz .....
php brute force code.. hlp plz .....  hello friends, from somewhere i got a code that can generate all posible combination via recursive function... help in my script. i dont know how to get solved i tried for two hours 

Java Beginners

Can you tell me how it worked?
Can you tell me how it worked?  public class Ball { private static... game.racquet.getBounds().intersects(getBounds()); } public void paint(Graphics2D g) { g.fillOval... Rectangle(x, y, DIAMETER, DIAMETER); } } How is the 'getBounds()' method called 

Java Beginners

CoreJava Project
CoreJava Project  Hi Sir, I need a simple project(using core Java, Swings, JDBC) on core Java... If you have please send to my account 

JSP Servlet Questions

Please , can any one answer this Question?
Please , can any one answer this Question?  How to cummunicate one web application to another web application in different places 

Programming Tutorials

Corejava Interview,Corejava questions,Corejava Interview Questions,Corejava
class is a class to which values assigned to the variables can not be altered... sandbox does not allow to obtain this reference so that system can be access 

Java Beginners

What is the answer and how the program work?
What is the answer and how the program work?  public class Threads2... of method."); } } Which two can be results? (Choose two...;); } } /*Which two can be results? (Choose two 

Java Beginners

can you explain ?
can you explain ?  my dear can you teel me the explaintion for this code i need it GregorianCalendar cal = new GregorianCalendar(y, m, 0...(); } } iam explain whole code exept this part can you help 

Ajax Questions

share your answer to this question
share your answer to this question  i need to know what... are the websites available which give infor regarding this. Let me know how to search for the above mentioned topics and where i can get relevant information 

Programming Tutorials

Explain how you overcame a major obstacle
Explain how you overcame a major obstacle       Qus. Explain how you overcame a major... will probably lose if you answer first. So, do not answer it. Instead, say something like 

JavaScript Questions

force a page to go to another page using JavaScript
force a page to go to another page using JavaScript  How to force a page to go to another page using JavaScript 

Java Interview Questions

how can you say java is secure
how can you say java is secure  we are using notepad editor for Java programming which is an Microsoft product, then how can you say Java is secure when you are using Microsoft product as an editor 

Java Beginners

corejava - Java Beginners
corejava pass by value semantics  Example of pass by value semantics in Core Java.  Hi friend,Java passes parameters to methods using pass.... This is, for example, why you cannot mutate the (original, caller's) reference to the object 

JSP Servlet Questions

Please answer me - JSP-Servlet
Please answer me  Hello Guys, this is the third time I'm sending this question. But I've not got the right answer from you. The again is: I need java servlet or jsp codes that I can use to insert and retrieve image from MSSQL 

Interview Questions

If you came on board with us, what changes would you make in the system?
sound this out and you are sure to lose the game. How can you get the job.... The interviewer is not just evaluating how tough you can get. If you have fired.... You may be very bright, but no one can really understand what needs to be done 

Core Java

Ask Programming Questions and Discuss your Problems
read this. This will help you enormously and can save your lots of time. Before... search engine. You may also get you answer in tutorial page, just put your keywords in our search engine. You can even find your answers by reading 

Date Calendar

how can you calculate you your age in daies??
how can you calculate you your age in daies??  **hi, I am beginner in java! can any one help me to write programm to calculate age in daies...."); } } Hope that the above code will be helpful for you. Thanks 

Java Beginners

Can you help me with applet?
Can you help me with applet?  I'm very new to applet, and i'm weak in graphic design part. How can i add the graphic in my test project? Can you help me with this: import java.io.*; import java.util.*; import javax.swing. 

Java Interview Questions

corejava - Java Interview Questions
corejava  how to merge the arrays of sorting 

Java Beginners

corejava - Java Beginners
corejava  how to write a program to multiply 1000 digit numbers with out using biginteger class 

Java Beginners

corejava - Java Beginners
block, function or class can be declared as a synchronized one.  Hello 

Java Beginners

corejava - Java Beginners
corejava  hai this is jagadhish. I have a doubt on corejava.How many design patterns are there in core java? which are useful in threads?what r the names of these design patterns? ok thank you (inadvance).  Hi 

Java Beginners

corejava - Java Beginners
Tutorials for Core Java beginners  Can anyone share their example of Encapsulation in java? I'm a core Java beginner.  Hi,Here is the description of Encapsulation in java:Encapsulation is a process of binding 

Java Interview Questions

corejava - Java Interview Questions
corejava  how to merge the arrays of sorting i want source code of this one plz---------------------------------------------  Hi Friend, Try the following code: public class MergeSort{ public static void main 

Java Interview Questions

corejava - Java Interview Questions
corejava  how to validate the date field in Java Script?  Hi friend, date validation in javascript var dtCh= "/"; var minYear=1900; var maxYear=2100; function isInteger(s){ var i; for (i = 0 

Java Beginners

corejava
 

Java Interview Questions

corejava
 

Travel

About Indian Air Force Museum Delhi
for the public to see. People can see these transport planes during Air Force Day...The Indian Air Force Museum of Delhi The Palam Air Force Base Station... to be in the Indian Air Force. The station is also popular among tourists because 

Interview Questions

How many hours a day/a week do you work?
How many hours a day/a week do you work?  ... (that you are seeking)? Be very careful about the way you answer this question... challenging part of your profession. Also show how you have excelled in this area 

Java Interview Questions

How would you create a button with rounded edges?
How would you create a button with rounded edges?   How would you create a button with rounded edges?   Hi, Here is the answer, We can... that a JButton?s edges are drawn by a Border. so you can override the Button?s paintComponent 

JSP Servlet Questions

how can manages recordset in jsp
how can manages recordset in jsp  I am ask a question how can show 5-5 records in jsp page and I get answer provided by you but it give exception:- org.apache.jasper.JasperException: /jsp/paging.jsp(75,0) According to TLD 

Ajax Questions

my answer
{ /* * TODO output your page here. You may use following sample code 

Programming Questions

Question-Answer Guidelines
Question-Answer Guidelines How to ask questions... if the answer is too long to response. This process has been adopted to provide you... for common matters. It is an email-based problem solving service in which users can ask 

Hibernate Questions

How can I create sessionfactory in Hibernate?
How can I create sessionfactory in Hibernate?  HELLO, How can I create sessionfactory in Hibernate? If you can explain me with example that would be great. THANKS..   Dear Friend, Here is an Example of creating 

Java Beginners

How can you add elements of two arrayLists in java?
How can you add elements of two arrayLists in java?  if you have... of tempArray2 = [a, b, c, d, e] and you want it to result in newArr = [hi a, my b, name c, is d, john e] how do you go about 

Spring Framework Questions

How can you handle form in Spring 3.2 MVC?
How can you handle form in Spring 3.2 MVC?  Hi, How can you handle... the How can you handle form in Spring 3.2 MVC?   Hi, This article.... For more please visit the How can you handle form in Spring 3.2 MVC 

Interview Questions

Don?t you think you are overqualified for this job?
how you see the situation- whether you can see advantages to both sides. You... is how long you are going to last with this company. Your answer should therefore... their position and how you view them. This can happen without you doing anything 

Java Beginners

plz. answer my ques - Java Beginners
such type of program is possible in c.  can you mention technology...plz. answer my ques  I want to ask a prog. prob which would create... is Valid"); } else{ out.println("You are not a Valid User 

General

Java Glossary Term - G
Java Glossary Term - G       Java Generic Java 1.5 provides number of new features... needed by the program are "garbage" and can be thrown away or destroyed 

Java Beginners

how can i simplify my java code
how can i simplify my java code  /* Create a program that prompts...); if (pass.equals(out)) { System.out.println("Well Done You... Done You Right on Target"); } else 

Programming Questions

Question Answer
website. If you found the question you can read the answer if it solves your problem then you can post your comment. If proper answer is not given you can... Here, you can post your desired question. For posting any question / query 

Java Beginners

Java - looking for a tool to force-kill a child process (Windows)
Java - looking for a tool to force-kill a child process (Windows)  hello I am looking for a Java tool/package/library that will allow me to force... PID upon its creation This can be done in Windows by diffinf the process 

Interview Questions

When you look back on the position you held last, do you think you have done your best in it?
give an answer that helps him see the qualifications and qualities that only you... must have researched this company before coming for the interview. Can you tell me... the company. 64. How would you rate me as an interviewer on a scale of 1 to 10 

JSP Servlet Questions

Urgent Answer Req
Urgent Answer Req  how to view the file content which is at client side from jsp in java 

Java Beginners

pattern matching --four way technique........brute force algorithm
am trying to implement pattern matching using brute force algorithm where I am... and independent threads using multithreading concept in java. As you know processors... the four processors completely...this is my code for brute force..plz help me out 

Java Interview Questions

Please give me the answer.
"int a=08 or 09" its giving compile time error why   "int a=08 or 09" its giving compile time error why ? can any one give me the answer of this please 

Java Beginners

please answer me
please answer me  iam using html in select tag.in this one option i selected and that option data will be display in table.And use servlet with html and how to retrieve the data from data base 

Interview Questions

I think you should be earning more money at this point of your career. Why isn?t it happening?
negotiating your salary. However your answer should explain why you are earning something below the industry standards. Your answer should state that you do like... searching for an answer- it suggests that you have had no role models. If you speak 

Java Beginners

How can I get query string values in JavaScript?
How can I get query string values in JavaScript?  How can I get query string values in JavaScript?   To get a query string value, you can...(results[1].replace(/\+/g 

Java Beginners

Is the answer 35, 35?
Is the answer 35, 35?  int a = 5; int b = 7; int num = 35; while...; } } } The above program outputs: My age is ? " 35 My age is ? " 35 As you have created a condition that a should be less than b.And you have specified a=5 

Framework Questions

need the answer vry urgently..plz help me...[plzzzzzzzz
need the answer vry urgently..plz help me...[plzzzzzzzz  the question... by you is present or not .. 4.return success orfailure from the database... useing struts or servlet... in eclipse platform...can any one tell me the source 

Java Beginners

Please can you help
Please can you help  I have a some code which uses a textarea comment box that will on post return the users text to the same page that they entered...; Please could you change the code so it will do this Please. Many thanks. Colin 

Java Beginners

Can you correct this codes?
Can you correct this codes?  Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 4 at searchcon.(searchcon.java:39) at search.initComponents(search.java:41) at search.(search.java:7) at payroll 

Struts Questions

Would you know answer means please send reply urgent
Would you know answer means please send reply urgent  HTTP Status 404 - /struts/HelloWorld.jsp type Status report message /struts/HelloWorld.jsp description The requested resource (/struts/HelloWorld.jsp) is not available 

Java Beginners

to know my answer
to know my answer  hi, this is pinki, i can't solve my question "how to change rupee to dollar,pound and viceversa using wrapper class in java." will u help me 

JSP Servlet Questions

s per ur answer
folder.   Hello Friend, We were explaining you the directory structure... If it was not there in your directory structure, then you need to create the web.xml. 

HTML Questions

how to get following answer in turbo c program
how to get following answer in turbo c program  input 123456789 output 1 2 3 4 5 6 7 8 9 

Regex Questions

answer
 

JDBC Questions

How Jdbc program can be run??
How Jdbc program can be run??  import java.sql.*; import java.util.... to know what is the problem? and how can i run it successfully? please give me a satisfieng answer ,bcz i am not satisfied by ur previous answer... thank u 

Free Programming books

Linux Books
reading this book you should understand how to compile a program, and how to use basic... Security Guide A computer is secure if you can depend.... This manual doesn't tell you how to install Linux; that is described 

General

Java Interview Questions
;    Question: How can you write a loop indefinitely? Answer: for(;;)--for loop; while(true)--always true, etc. Question: . Can an anonymous class be declared as implementing 

Java Beginners

How can I learn Java?
How can I learn Java?  Hi, I have just completed a course in HTML... programming. How can I learn Java? in shortest possible time. I mean I just want to begin... are the best ways to learn Java for a beginner? Thanks   Hi, You can 

Java Beginners

hello sir, please give me answer - Java Beginners
you know how the next two while loops works 

JSP Interview Questions

can i remopve a jsp web page - JSP-Interview Questions
can i remopve a jsp web page  Dear, I ask you a question BUT you do noit answer me: My question Can I remove .jsp and the program still working because it generates .class file. Regards 

JavaScript Questions

How can we implement Pop-up in JQuery without Plugin?
How can we implement Pop-up in JQuery without Plugin?  Hi Sir How can we Implement pop-up in JQuery without using plug-in. Please provide me code with detailed answer. Thanks in advance.   Hello Friend You need 

JSP Servlet Questions

Plz send me answer quckly
Plz send me answer quckly  Respected Sir, myself is pavan shrivastava.i want ask a question that is ( we can't create object of interface then how would possible to create object 

Java-Tutorials

How you can escape a String for HTML using the StringEscapeUtils
Description: This tutorial demonstrate how you can escape a String for HTML... running this example Before running this program you need to set the class path. You can set the path of jar files in the batch file. Here it is written 

XML Questions

How can i modify my account in roseindia
How can i modify my account in roseindia  Presently am not using my gmail id. I have to modify my roseindia account. Please send the answer to following mail id 

C Tutorials

C break continue example
;  In this section, you will learn how to use break statement... to force an immediate jump to the loop control statement. The break statement terminates the execution of the loop. As you can see in the given example, we have used 

Java Beginners

how we can create website through java
how we can create website through java  Dear actually i wanna ask query about creation of website through java then how we can create web site through java plz help me..........i have already a web site ....specially for premium 

Interview Questions

What would you rate as your greatest weaknesses?
and wants of the job, you can give a very relevant answer to this question... can see through this. Another method is to tell the employer that you do... of the job, you can tackle the current question in this way: “Well, no one 

Java Beginners

Can u Look to the error plz - Java Beginners
will be more thankfull if u do that :) , oh yeh one thing can you draw a flag...;where is the answer sir.? just i want from you to look what is the error plz...Can u Look to the error plz  this is my code can u modify it plz 

Java Beginners

How will you load a specific locale? - Java Beginners
How will you load a specific locale?  HI, Please tell me how to load a specific locale in Java program. Thanks   Hi Friend, You can use ResourceBundle.getBundle("Locale.UK"); For more information, visit 

Web Hosting Tutorial

How do I track how many hits my website gets
This article is discussing about how you can find no of visitors visiting... website. You can also find how much time your visitors are spending on your.... Based on your audience requirement you can upgrade your website and add 

Java Beginners

How to ask a questions to you clearly with normal english?
How to ask a questions to you clearly with normal english?  hi, i want to know how should or can i may ask a question. send me some format... in the same way as you have asked this question. Go to the Ask Questions part 

General

Code for Garbage Collection
;     In this section, you will learn how to force a garbage collector to work by creating many objects. Description of program: The following code of program will help you in forcing the garbage 

Web Development

Social media marketing - how a profile can help you
Social media marketing - how a profile can help you Social networking... is a look at how a dedicated profile can help you. People can get to know... on a social networking site you can still present information about your business 

JSP Servlet Questions

can we write a method in JSP - JSP-Servlet
that second jsp file to avoid code rewriting. how can I do this please help me out... write you requirement clear then i can able to give ans. thanks rajkumar...can we write a method in JSP  Hi All, In my web application I want 

Java Beginners

how can i set an object in focus
how can i set an object in focus  There is a Canvas object in my game...() { canvas.createBufferStrategy(2); Graphics2D g = (Graphics2D... = System.currentTimeMillis(); update(); render(g 

Java Beginners

How a beginner can start Java Programming?
How a beginner can start Java Programming?  I Just have programming knowledge of C & C++. Let's know how I can learn Java? Is there any Java... have programming language of C and C++ then you can learn Java programming 

Java Beginners

You know - Java Beginners
reply me how can i solve.. Thanks  Hi Ragini, I don't know php. Can u say me how to install and configure then i will try. I know the logic...You know  Hi Rajnikant you know php...if you know php 

HTML Questions

How can i use Facebook connect button
How can i use Facebook connect button  Please to meet you all guys I wonder how can i use this Connect to facebook for me to post in a particular... http://likekhevy4.blogspot.com/ How can i apply this kind of comment with "Connect 

Interview Questions

You have been working with this current firm for a long time. Don?t you think it would be difficult now to switch over t
your current firm and how you have adapted to them and grown with them. You can... comes your way and even thrive on the challenge. You can also show how.... Handle this with care. Frame a positive answer. You can for instance mention a new 

Software Services

Make Profit with Outsourcing,Profit from Outsourcing,How You Can Profit from Outsourcing
and now plan to venture into e-learning. You can either hire someone in-house.... By delegating the work of developing the portal to an outside vendor, you can focus... business. In the example cited above, you can outsource the web site development 

PHP Questions

Answer me ASAP, Thanks, very important
Answer me ASAP, Thanks, very important  Sir, how to fix this problem in mysql i have an error of "Too many connections" message from Mysql server,, ASAP please...Thanks in Advance 

Java Beginners

how can i close a frame. - Java Beginners
how can i close a frame.  Hi, My question is how can we close.............. can anyone help me... Thanking you, Mohammed afsar... frames as i go on clicking button...........can we have like when i click on button 

Interview Questions

Common Interview Questions Page - 11
regarding time and task management. You can answer that you manage your time very..., then you might be enjoy work on your own. However, a good answer can be that you... didn't get along with? How did you handle the situation?  Answer: The main 

Interview Questions

Difficult Interview Questions Page -3
;    Question 21: How would you evaluate your present firm?  Answer: Always put a positive image of the company whether you have get bitter experience, because your answer reflects your personality. So you can say 

Advertisements Advertisements
 

 

 

DMCA.com