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
Explain the steps in writing a java program using jdbc?
Is oracle client required for jdbc connection?
How can you retrieve data from the resultset using jdbc?
What is the difference between client and server database cursors?
What is jdbc type?
What are devices?
Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?
How do I load a database driver with JDBC 4.0 / Java 6?
How many jdbc driver types are there?
What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?
How many ways can you update a result set?
Does JDBC support stored procedures?
Explain creation of statement object with connection method create method with help of an example.
What is jdbc odbc?
What is an encrypted internet connection?