金山软件:
笔试:
interface 与 abstract class 使用时的区别
线程池的原理,引用线程池的优势
创建线程有两种方式:继承Thread或实现Runnable。Thread实现了Runnable接口,提供了一个空的run()方...... <阅读全文>
金山面试题 金山笔试题
1.What are three ways in which a thread can enter the waiting state?
2.In C++, there’re four type of Casting Operators, please enumerate and explain them especially the difference.
3.以下...... <阅读全文>
1.new delete malloc free
delete会调用对象的析构函数,和new对应free只会释放内存,
new调用构造函数。
malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存...... <阅读全文>
一、请你就C/C++或者JAVA代码行数、注释行数统计工具的实现,描述一下:
1、 需要考虑哪些过滤条件?你如何处理?
答:过滤条件:(取得每行并去掉两头的空格后)
⑴空行,行的长度为0;⑵如果是以//开头,为注释...... <阅读全文>
