- 浏览: 513814 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (173)
- CAS (2)
- J2SE (13)
- J2EE (5)
- Oracle (14)
- MySql (6)
- Hibernate (7)
- IBatis (5)
- JQuery (3)
- Html (9)
- Linux (3)
- CentOS (3)
- Test (3)
- SVN (4)
- Tomat (2)
- AJAX-ZK (2)
- Bug Track (1)
- Appfuse2 (6)
- MyEclipse (9)
- PowerDesign (1)
- Apache (1)
- Uml (1)
- 其它资料 (11)
- 读书笔记 (15)
- 读书笔记-《领域驱动设计》 (3)
- Android (12)
- SSL VPN (1)
- Struts (5)
- java 代理服务器 (1)
- 项目管理 (2)
- NOSQL 数据库 (1)
- 工作流 (0)
- 国内主要工作流厂商分析 (1)
- SparkIDE (2)
最新评论
-
吉米家:
JasperReports是不错,但是就是对代码编写要求太高了 ...
JasperReports给java web报表开发人员带来希望 -
asd51731:
谷超 写道如果html中有图片,如何把图片转换到word中呢? ...
使用Java将HTML转成Word格式文件 -
谷超:
如果html中有图片,如何把图片转换到word中呢?
使用Java将HTML转成Word格式文件 -
xwqiang:
没事看看,受教了
一个简单的基于注解的 Controller -
JC044008:
文章给力的。
一个简单的基于注解的 Controller
1. What’s the difference between process and thread?
It’s a complex question.I cannot explain it very clearly in telephone.So I want answer it according textbook.
The Process is unit of resource distribution and the thread is minimum unit of schedule.One process could include multiple thread, but one thread only belong to one process.
That’s all,thanks.
2. What must be attention in Porting program?
This question come down to two factor. One is hardware architecture and other is os platform.
If we port program in different os platform and same hardware architecture.The primary porting factor is different C runtimes library, of course include correlative header file.
What is this problem caused? I think the mostly reason is that hasn’t standard with C runtimes library.So the following problem will arriving:
(1) Same behavior function has different name.
(2) Same function name has different behavior.
(3) Same function name and same behavior has different implement.Such as memcpy.(memory address overcast)
If we port program in same os platform but different hardware architecture.The primary porting factor is:
(1) Cache management is different.(Of course, application can ignore this factor)
(2) Data alignment and memory layout
(3) Endianness.ect.
Certainly, if we’ll port program to a different platform and different hardware, we should take these factor into account.
3. Could you tell me the 7 layer of the OSI model?
En, this is simple.I will descript the model from buttom to top.The buttom layer is physical layer, and the following is data link layer, network layer, transport layer, session layer, presatation layer and application layer.
The TCP/IP network model is composed of five layer. They are physical layer, data link layer, network layer, transport layer and application layer. It’s industry standard.
4. Memory leak, out of bound, double release
Memory leak: You malloc a memory block but forget to release it.This action will bring on memory leak.
Memory out of bound:When write or read a memory block, you access address is out of that block.This lead out of bound.
Double release:If you repeatly release a memory block , this error called memory double release.
5. What’s the difference between TCP and UDP
TCP and UDP all are transport protocol.But TCP is conecction-oriented transport protocol, and it provide reliable ordered transport mechanism.UDP is connectionless-oriented transport protocol and it provide unreliable not ordered transport mechanism.
TCP is suit of the situation that transport a great deal of data and UDP is suit of transporting a few data.
That’s all. Thanks.
6. What’s the difference between reload and overwrite?
Reload is that use same function name with different function sign to implement same behavior.
Overwrite is sub-class re-write the function declared in parent-class.
===================================
4.What's the diffrence betweent array and vector?
Their primary diffrence is that array's size is const and the vector's size is variable.Besides, The array are fast to execute, have implicit type check and easy to handle.But it fail in situations where the size of data is unknown at compile time.In this situation, the vector is a choice(also arraylist).
Attach:
Array vs ArrayList vs Vector
April 11, 2006 at 9:10 pm · Filed under Software Engineer in me, Server Side, Java
I was just browsing through some of my old notes about the ‘research’ I did sometime back on various data structures available in java for handling dynamic data sets. Thought may be this could be helpful to somebody else as well. There are situations in code where you need to handle the data that grows during run time. Usually, as much as possible I prefer arrays to handle any homogeneous collection of elements, as they are fast to execute, have implicit type check and easy to handle. But they fail in situations where the size of data is unknown at compile time. The obvious choices available with java are ArrayLists or Vectors. Or I should say ArrayLists or Vectors?
Most of the time, people use both these data structures interchangeably. Even the documentation say that the ‘only’ difference between an ArrayList and a Vector is just that Vectors are synchronized, and there is no much difference. Here is what I found out
Similarities between ArrayLists and Vectors
Both can grow up during run time.
Both implement List interface.
With both, it is easier to remove or add elements at the end or start, but if you try to add or remove elements somewhere at middle of collection, they suffer performance wise. (Use LinkedLists if your programme need to do that a lot, but LinkList requires more memory and computation)
Now the differences
The major difference, as the documentation says, is just that vectors are synchronized. Now what does that mean, this means that if more than one thread in your code is to use that data, you are in trouble with ArrayList as the data is asynchronous. Though there are ways by which you can make your ArrayLists synchronous, but by default they are not. The obvious downside with vectors is the additional computation to handle threads.
The other difference is that with vectors, you can specify the incremental value, which is the amount with which the data structure will grow during the runtime. But with ArrayLists you have no option but to accept default that is the list will grow up 50% of original size everytime it needs additional space. It is advisable in both the cases to choose the initial size carefully.
My recommendation will be to use Arrays as much as possible, as they are fast and simple; of course you can not do that in cases where data set is completely dynamic. In these cases, go for ArrayList if your code is ‘threadsafe’ else Vectors or synchronous ArrayLists are suitable.
7. Difference between TCP and UDP
附表:tcp协议和udp协议的差别
There are two types of internet protocol (IP) traffic, and both have very different uses.
TCP(Transmission Control Protocol). TCP is a connection-oriented protocol, a connection can be made from client to server, and from then on any data can be sent along that connection.
Reliable - when you send a message along a TCP socket, you know it will get there unless the connection fails completely. If it gets lost along the way, the server will re-request the lost part. This means complete integrity, things don't get corrupted.
Ordered - if you send two messages along a connection, one after the other, you know the first message will get there first. You don't have to worry about data arriving in the wrong order.
Heavyweight - when the low level parts of the TCP "stream" arrive in the wrong order, resend requests have to be sent, and all the out of sequence parts have to be put back together, so requires a bit of work to piece together.
UDP(User Datagram Protocol). A simpler message-based connectionless protocol. With UDP you send messages(packets) across the network in chunks.
Unreliable - When you send a message, you don't know if it'll get there, it could get lost on the way.
Not ordered - If you send two messages out, you don't know what order they'll arrive in.
Lightweight - No ordering of messages, no tracking connections, etc. It's just fire and forget! This means it's a lot quicker, and the network card / OS have to do very little work to translate the data back from the packets.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/yyzzbb_yang/archive/2006/07/27/985465.aspx
It’s a complex question.I cannot explain it very clearly in telephone.So I want answer it according textbook.
The Process is unit of resource distribution and the thread is minimum unit of schedule.One process could include multiple thread, but one thread only belong to one process.
That’s all,thanks.
2. What must be attention in Porting program?
This question come down to two factor. One is hardware architecture and other is os platform.
If we port program in different os platform and same hardware architecture.The primary porting factor is different C runtimes library, of course include correlative header file.
What is this problem caused? I think the mostly reason is that hasn’t standard with C runtimes library.So the following problem will arriving:
(1) Same behavior function has different name.
(2) Same function name has different behavior.
(3) Same function name and same behavior has different implement.Such as memcpy.(memory address overcast)
If we port program in same os platform but different hardware architecture.The primary porting factor is:
(1) Cache management is different.(Of course, application can ignore this factor)
(2) Data alignment and memory layout
(3) Endianness.ect.
Certainly, if we’ll port program to a different platform and different hardware, we should take these factor into account.
3. Could you tell me the 7 layer of the OSI model?
En, this is simple.I will descript the model from buttom to top.The buttom layer is physical layer, and the following is data link layer, network layer, transport layer, session layer, presatation layer and application layer.
The TCP/IP network model is composed of five layer. They are physical layer, data link layer, network layer, transport layer and application layer. It’s industry standard.
4. Memory leak, out of bound, double release
Memory leak: You malloc a memory block but forget to release it.This action will bring on memory leak.
Memory out of bound:When write or read a memory block, you access address is out of that block.This lead out of bound.
Double release:If you repeatly release a memory block , this error called memory double release.
5. What’s the difference between TCP and UDP
TCP and UDP all are transport protocol.But TCP is conecction-oriented transport protocol, and it provide reliable ordered transport mechanism.UDP is connectionless-oriented transport protocol and it provide unreliable not ordered transport mechanism.
TCP is suit of the situation that transport a great deal of data and UDP is suit of transporting a few data.
That’s all. Thanks.
6. What’s the difference between reload and overwrite?
Reload is that use same function name with different function sign to implement same behavior.
Overwrite is sub-class re-write the function declared in parent-class.
===================================
4.What's the diffrence betweent array and vector?
Their primary diffrence is that array's size is const and the vector's size is variable.Besides, The array are fast to execute, have implicit type check and easy to handle.But it fail in situations where the size of data is unknown at compile time.In this situation, the vector is a choice(also arraylist).
Attach:
Array vs ArrayList vs Vector
April 11, 2006 at 9:10 pm · Filed under Software Engineer in me, Server Side, Java
I was just browsing through some of my old notes about the ‘research’ I did sometime back on various data structures available in java for handling dynamic data sets. Thought may be this could be helpful to somebody else as well. There are situations in code where you need to handle the data that grows during run time. Usually, as much as possible I prefer arrays to handle any homogeneous collection of elements, as they are fast to execute, have implicit type check and easy to handle. But they fail in situations where the size of data is unknown at compile time. The obvious choices available with java are ArrayLists or Vectors. Or I should say ArrayLists or Vectors?
Most of the time, people use both these data structures interchangeably. Even the documentation say that the ‘only’ difference between an ArrayList and a Vector is just that Vectors are synchronized, and there is no much difference. Here is what I found out
Similarities between ArrayLists and Vectors
Both can grow up during run time.
Both implement List interface.
With both, it is easier to remove or add elements at the end or start, but if you try to add or remove elements somewhere at middle of collection, they suffer performance wise. (Use LinkedLists if your programme need to do that a lot, but LinkList requires more memory and computation)
Now the differences
The major difference, as the documentation says, is just that vectors are synchronized. Now what does that mean, this means that if more than one thread in your code is to use that data, you are in trouble with ArrayList as the data is asynchronous. Though there are ways by which you can make your ArrayLists synchronous, but by default they are not. The obvious downside with vectors is the additional computation to handle threads.
The other difference is that with vectors, you can specify the incremental value, which is the amount with which the data structure will grow during the runtime. But with ArrayLists you have no option but to accept default that is the list will grow up 50% of original size everytime it needs additional space. It is advisable in both the cases to choose the initial size carefully.
My recommendation will be to use Arrays as much as possible, as they are fast and simple; of course you can not do that in cases where data set is completely dynamic. In these cases, go for ArrayList if your code is ‘threadsafe’ else Vectors or synchronous ArrayLists are suitable.
7. Difference between TCP and UDP
附表:tcp协议和udp协议的差别
There are two types of internet protocol (IP) traffic, and both have very different uses.
TCP(Transmission Control Protocol). TCP is a connection-oriented protocol, a connection can be made from client to server, and from then on any data can be sent along that connection.
Reliable - when you send a message along a TCP socket, you know it will get there unless the connection fails completely. If it gets lost along the way, the server will re-request the lost part. This means complete integrity, things don't get corrupted.
Ordered - if you send two messages along a connection, one after the other, you know the first message will get there first. You don't have to worry about data arriving in the wrong order.
Heavyweight - when the low level parts of the TCP "stream" arrive in the wrong order, resend requests have to be sent, and all the out of sequence parts have to be put back together, so requires a bit of work to piece together.
UDP(User Datagram Protocol). A simpler message-based connectionless protocol. With UDP you send messages(packets) across the network in chunks.
Unreliable - When you send a message, you don't know if it'll get there, it could get lost on the way.
Not ordered - If you send two messages out, you don't know what order they'll arrive in.
Lightweight - No ordering of messages, no tracking connections, etc. It's just fire and forget! This means it's a lot quicker, and the network card / OS have to do very little work to translate the data back from the packets.
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/yyzzbb_yang/archive/2006/07/27/985465.aspx
发表评论
-
投身移动开发必须知道的20件事
2013-02-24 20:09 936移动开发需要具体的设计考虑。这个所指的范围非常广,可以从“你 ... -
移动应用一般具备以下几个特点:美观,简单,实用,耐看
2012-12-16 21:55 1363“幸福的家庭总是相似的,不幸的家庭各有各的不幸”,这个准则同样 ... -
windows工程移植到AIX有感
2012-10-08 18:26 1203由于本地开发用的是jdk1.6,在AIX系统中需要1.6版本的 ... -
myeclipse8.5 测试 webservice
2011-12-31 10:59 1127在myeclipse8.5中测试webservice,在工具条 ... -
个人如何创业
2011-04-25 08:32 1149● 先打工(将来创业的行业),成熟了,再创业。 ● 你准备好 ... -
远程桌面命令
2010-07-02 16:43 2789mstsc /console /v:IP:端口 例如:msts ... -
Syslog 标准介绍
2010-01-07 16:11 3203在Unix类操作系统上,sys ... -
信息安全公司链接
2009-09-21 10:37 1626内地厂商 安氏(中国),冠群(中国),启明星辰,东软股份 ... -
Google配置IMAP邮箱
2008-12-03 16:14 2149http://huang.yuewu.cn/2008/04/1 ... -
网上投递简历技巧
2008-11-28 10:48 2269告诉你一些网上投递简 ...
相关推荐
汇丰软件Java面试题是非常具有挑战性的,需要考生具备扎实的Java基础知识、良好的编程能力和英语口语能力,并且需要具备良好的逻辑思维能力和问题解决能力。考生需要认真准备,熟悉面试题目,提高自己的编程能力和...
- **英语书写及口语表达**:面试中可能包含英文书写的试题,以及英语口语的展示环节。这对于国际化的ABB公司而言非常重要,因为良好的英语沟通能力能够帮助员工更好地完成跨国项目合作。 #### 四、结构化面试准备...
软件测试面试题【2024年软件测试必考50个面试题及答案简介】 内容概要: 本文为初学者提供了一个全面的学习指南,涵盖了50个软件测试面试题及其答案。通过通俗易懂的语言,本文介绍了软件测试的基础知识、高级概念...
【标题】:英语口语考试题中的面试技巧解析 【描述】:本文件主要探讨了在英语口语考试中,尤其是在模拟工作面试场景时,求职者所需掌握的重要技能和策略。这包括了面试者的外表形象、礼仪举止、专业能力展示以及...
除了技术性问题外,文章还提到了面试中常见的英语问答,如个人背景、家庭情况及对特定城市的看法等。这类问题旨在评估应聘者的英语沟通能力以及对工作地点的适应性。准备这类问题的答案时,应保持真实且正面的态度,...
12. **英语沟通**:很多世界500强企业有全球化的背景,良好的英语口语和书写能力是必备的。 13. **面试技巧**:保持自信、诚实、专注,并对面试官的问题给予充分思考后再作答。良好的非语言沟通,如眼神交流和身体...
- 通过模拟面试和寻求他人反馈来提升英语口语和面试技巧。这可以帮助你在真实面试中更加从容不迫。 记住,成功的英语面试不仅在于语言的流利程度,还在于你如何展示自己的专业技能、适应能力和对公司的热情。提前...
- 逻辑思维能力:在面试中,考生需要清晰地表达自己的想法,具备条理性和逻辑性,能够合理地分析和解决问题。 - 应变能力:教师在面试和实际教学中经常会遇到突发情况,应变能力是教师应对突发事件的重要能力。 2. ...
8. 教育理念:教学过程中体现了以学生为中心的教学理念,鼓励学生自主学习,培养他们的问题解决能力和批判性思维。 9. 语言教育目标:除了传授知识,教师还致力于提高学生的语言表达能力,通过朗读和口语练习,提升...
研究发现,APP口语考试具有较好的内部一致性和效度,能够与传统面试型口语考试媲美。但是,APP口语考试也存在一些局限性,主要适用于常规能力测试,而交际口试题型应选择传统面试型口语方式考试。 APP英语口语考试...
mysql【40道MySQL高频面试题解析简介】 内容概要: 本文为MySQL面试者提供了一个全面的学习指南,涵盖了40道MySQL高频面试题及其答案。通过通俗易懂的语言,本文介绍了MySQL的基础知识、高级特性以及实战技巧,旨在...
switch函数内容概要: 本文为编程面试准备者提供了一个全面的学习指南,专注于switch函数的相关知识点和面试题。通过通俗易懂的语言,本文介绍了switch函数的基础知识、使用方法、注意事项以及实战演练。此外,文章...
【Java HR面试题详解】 在HR面试中,虽然主要考察的是候选人的个人素质、沟通能力和团队协作能力,但针对Java开发岗位,HR也会提出一些与技术相关的问题,以确保候选人具备基本的技术素养和对该行业的热情。以下是...
同时,文章还提供了100个爬虫面试题及答案,以及面试题实战演练和模拟面试练习,旨在帮助求职者更好地准备爬虫相关的职位面试。 适用人群: 本篇文章主要面向爬虫技术初学者,特别是那些即将参加春招的应届毕业生和...
在考研的漫长征程中,复试是至关重要的一环,尤其是对于软件工程这样技术性极强的专业来说,复试往往更侧重于实践能力和专业知识的考察。西北大学作为国内知名高校,其软件工程专业的考研复试自然备受瞩目。本资料...
python内容概要: 本文为Python面试者提供了一个全面的学习指南,涵盖了50道Python常考面试题及其答案。通过通俗易懂的语言,本文介绍了Python的基础知识、高级特性以及实战技巧,旨在帮助面试者更好地准备Python...
5. **面试决策**:中兴可能在面试过程中已经初步确定人选,后续的面试可能更侧重于综合评估,如英语口语、团队管理能力、个人动机和适应性等。 6. **面试后的跟进**:面试结束后,应聘者可以通过简历状态跟踪进展。...
从提供的文件内容中,我们可以提炼出一些与中学英语教师面试相关的知识点。首先,文件涉及教学材料分析以及教学目标的制定,接下来我们按照文件内容逐步深入分析: 一、教学材料分析 教学材料分析部分涉及了课程的...
4. 英语面试技巧,如如何清晰、准确地表达观点,如何用专业词汇和短语,以及如何展示良好的听力和口语技巧。 5. 模拟对话或案例研究,帮助求职者练习在真实场景下的英语交流。 6. 英语面试常见误区和避免策略,提醒...
摩托罗拉公司的面试流程可能包括英语口语、技术问题以及对特定知识的深入考察。下面,我们将详细探讨这些知识点。 首先,面试通常会从自我介绍开始,这是展示个人能力和经验的重要机会。在英语环境下,提前准备一个...