由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 求教几道面试题
相关主题
该买32位的还是64位的笔记本呢how to debug multi-thread program?
古狗研究新出炉:C++ Is The Best Performing Languageg++ problem!!!!
Sun当年设计Java的败笔JAVA generic programming 是怎么实现的?
zhaoce同学啊 几道 google interview 的题目
有什么 Java 开源类库能做在线订单管理和付账?程序速读指南
javascript 真的来自于java上的script?[合集] can a single thread run into deadlock?
几道面试题:memory, sort, 等准备面试一个java-based position,有什么书推荐一下?
面试问题一问 (转载)急问:Oracle JDBC 问题
相关话题的讨论汇总
话题: object话题: phone话题: what话题: book话题: bytes
进入Programming版参与讨论
1 (共1页)
t*****n
发帖数: 25
1
1. Can one thread deadlock itself?
2. what is the size for the object of a class which only has some non-
virtual member function
3. what is the content in the first four bytes of the object
4. how to destroy an object before the end of its scope
5. a phone book has many names and phone numbers, what structure for the
phone book
6. in a stream of words, count the frequency
t*****n
发帖数: 25
2
2:1 byte
其余期待解答,谢谢!

【在 t*****n 的大作中提到】
: 1. Can one thread deadlock itself?
: 2. what is the size for the object of a class which only has some non-
: virtual member function
: 3. what is the content in the first four bytes of the object
: 4. how to destroy an object before the end of its scope
: 5. a phone book has many names and phone numbers, what structure for the
: phone book
: 6. in a stream of words, count the frequency

h******r
发帖数: 33
3

It depends. For example, for some JVM implementation, it is 4 bytes.
It depends. For some JVM implementation, it is a pointer/reference pointing
to class type structure.
For q2 and q3, the best source is to refer to Sun JDK's source codes or IBM'
s Jikes RVM's source codes.

【在 t*****n 的大作中提到】
: 1. Can one thread deadlock itself?
: 2. what is the size for the object of a class which only has some non-
: virtual member function
: 3. what is the content in the first four bytes of the object
: 4. how to destroy an object before the end of its scope
: 5. a phone book has many names and phone numbers, what structure for the
: phone book
: 6. in a stream of words, count the frequency

c**a
发帖数: 316
4
a.~A();

【在 t*****n 的大作中提到】
: 2:1 byte
: 其余期待解答,谢谢!

a******8
发帖数: 46
5

hash table

【在 t*****n 的大作中提到】
: 1. Can one thread deadlock itself?
: 2. what is the size for the object of a class which only has some non-
: virtual member function
: 3. what is the content in the first four bytes of the object
: 4. how to destroy an object before the end of its scope
: 5. a phone book has many names and phone numbers, what structure for the
: phone book
: 6. in a stream of words, count the frequency

1 (共1页)
进入Programming版参与讨论
相关主题
急问:Oracle JDBC 问题有什么 Java 开源类库能做在线订单管理和付账?
计算机供电不稳定会影响程序/线程运行吗?javascript 真的来自于java上的script?
什么程序可以把中文转换成unicode ?几道面试题:memory, sort, 等
Mac or IBM laptop for java programming? Thank you!!!面试问题一问 (转载)
该买32位的还是64位的笔记本呢how to debug multi-thread program?
古狗研究新出炉:C++ Is The Best Performing Languageg++ problem!!!!
Sun当年设计Java的败笔JAVA generic programming 是怎么实现的?
zhaoce同学啊 几道 google interview 的题目
相关话题的讨论汇总
话题: object话题: phone话题: what话题: book话题: bytes