HI ALL,
How to Overcome "OutOfMemoryException"? when I am compiling
source having more than 1000 LOC throwing this exception.
Can any one give correct answer to my question? thx

Answer Posted / sunit panday

actually there are some conditions due to which
OutOfMemoryException caused as follows:-
1. when java virtual machine coudnot create the object as
specified by the programmer
2. when the database so high as respect to system physical
and virtual memory is low
you can use following command to find the free memory:-
Runtime runtime = Runtime.getRuntime();
System.out.println ("Free memory : " - + runtime.freeMemory
() );
as this exception is in java.lang.Object package

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between jdbc and odbc?

523


What are the functions of the jdbc connection interface?

500


What is java soft framework?

545


Jdbc-odbc bridge is multi-threaded or not?

525


How can you make a connection?

530






Which database is used for java?

523


What is meant by dao?

518


Where is jdbc used?

482


What are different parts of a url?

499


Prepared statements are faster. Why?

606


What are the utilities of the callablestatement?

510


What does the jdbc resultsetmetadata interface?

546


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

512


How to rollback a JDBC transaction?

562


What is jdbc oracle thin?

472