热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

模拟考试

设为首页

收藏此页面

订阅邮箱地址

C# 面试题与答案

问题 6. Whats class SortedList underneath?

A sorted HashTable.

这有帮助吗? 添加评论 查看评论
 

问题 7. Will finally block get executed if the exception had not occurred?

Yes.

这有帮助吗? 添加评论 查看评论
 

问题 8. Whats the C# equivalent of C++ catch (), which was a catch-all statement for any possible exception?

A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

这有帮助吗? 添加评论 查看评论
 

问题 9. Can multiple catch blocks be executed?

No, once the proper catch code fires off, the control is transferred to the finally block (if there are any), and then whatever follows the finally block.

这有帮助吗? 添加评论 查看评论
 

问题 10. Why is it a bad idea to throw your own exceptions?

Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。