Answer & Explanation Option: [B]
When a program is stopped due to lack of memory then OutOfMemoryError is thrown.