An OutOfMemoryError is thrown. Frame the concept in practical terms so you can explain it during interview discussion.
When Metaspace cannot allocate enough native memory for new class metadata, the JVM throws an OutOfMemoryError. This can occur if an application dynamically loads numerous classes without sufficient Metaspace allocation. For example, a sudden increase in concurrent users during a sale might lead to such an error if the application wasn't properly sized.