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 use of jdbc?
When do we get java.sql.SQLException: No suitable driver found?
List the common jdbc exceptions ?
Why “no suitable driver” error occurs?
java based application for hospital management
Give an example for execution of sql statement.
Why jdbc is used in java?
What is difference between odbc and jdbc?
What is jdbc in dbms?
Where can I find ojdbc14 jar file?
How does jdbc work?
What is a JDBC 2.0 DataSource?
Give a way to check that all result sets have bin accessed and update counts are generated by execute method.
How many locking systems are there in jdbc?
What is java soft framework?