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
What is the difference between jdbc and odbc?
What are the functions of the jdbc connection interface?
What is java soft framework?
Jdbc-odbc bridge is multi-threaded or not?
How can you make a connection?
Which database is used for java?
What is meant by dao?
Where is jdbc used?
What are different parts of a url?
Prepared statements are faster. Why?
What are the utilities of the callablestatement?
What does the jdbc resultsetmetadata interface?
What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?
How to rollback a JDBC transaction?
What is jdbc oracle thin?