What happens when enough memory is not available to be allocated to an object?

Question:What happens when enough memory is not available to be allocated to an object?

1.MemoryFull exception is thrown

2.Garbage collector is automatically run to free up memory

3.OutOfMemory exception is thrown

4.The .Net worker process is restarted


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!