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
Which database is used for java?
What are the steps to connect to the database in java?
How do I stop nullpointerexception?
Is jdbc secure?
How can you know about drivers and database information ?
State the three different ways in which you can create a table?
What is difference between jdbc and odbc?
Name different methods for getting streams.
How to set NULL values in JDBC PreparedStatement?
What is serialization and deserialization in java programming?
Is odbc an api?
Explain the steps in writing a java program using jdbc?
What is an SQL Locator?
How do I find ojdbc jar version?
What is Apache DBCP API?