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 an SQL Locator?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
What is meant by dao?
Which type of driver is unique in jdbc?
How can I use the JDBC API to access a desktop database like Microsoft Access over the network?
Describe the steps needed to execute a sql query using jdbc.
What is type 4 jdbc driver?
Explain jdbc savepoint?
What is ODBC and JDBC? How do you connect the Database?
What is the different between ResultSet and RowSet?
Give an example of code used for setting up connection with a driver.
Under what circumstances, that all four drivers are used?
What is the difference between client and server database cursors?
What is a java driver?
What is setautocommit in jdbc?