Samsung Interview Question
Country: India
The maximum memory it can allocate is the size of heap memory available( the size varies with machines).
It depends on OS. For 64-bit systems it is technically possible, on some machines/OS, to have a very large heap memory until your program thrashes, i.e., start paging since you have exceeded the RAM limit.
So theoretically I would say as large as you wish, but no point going (much) above RAM since everything will get slow.
1) It depends on the resource limits of the user.
- Shiva August 17, 20132) It also depends on the availability of address space.