Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题纯粹是理论上的,以了解可以作为异常抛出的限制。可以抛出引用吗?我不认为标准是明确的。如果可能的话,那么可能是对堆对象的引用,而不是堆栈上超出捕获站点范围的对象?那行得通吗?