Core Java2(7Th) study(1)What sorts of problems do you need to consider?
2006-12-13 17:55
507 查看
What sorts of problems do you need to consider?
User input errors. In addition to the inevitable typos, some users like to blaze their own trail instead of following directions. Suppose, for example, that a user asks to connect to a URL that is syntactically wrong. Your code should check the syntax, but suppose it does not. Then the network package will complain.
Device errors. Hardware does not always do what you want it to. The printer may be turned off. A web page may be temporarily unavailable. Devices will often fail in the middle of a task. For example, a printer may run out of paper in the middle of a printout.
Physical limitations. Disks can fill up; you can run out of available memory.
Code errors. A method may not perform correctly. For example, it could deliver wrong answers or use other methods incorrectly. Computing an invalid array index, trying to find a nonexistent entry in a hash table, and trying to pop an empty stack are all examples of a code error.
User input errors. In addition to the inevitable typos, some users like to blaze their own trail instead of following directions. Suppose, for example, that a user asks to connect to a URL that is syntactically wrong. Your code should check the syntax, but suppose it does not. Then the network package will complain.
Device errors. Hardware does not always do what you want it to. The printer may be turned off. A web page may be temporarily unavailable. Devices will often fail in the middle of a task. For example, a printer may run out of paper in the middle of a printout.
Physical limitations. Disks can fill up; you can run out of available memory.
Code errors. A method may not perform correctly. For example, it could deliver wrong answers or use other methods incorrectly. Computing an invalid array index, trying to find a nonexistent entry in a hash table, and trying to pop an empty stack are all examples of a code error.
相关文章推荐
- Why can't I ...? Why won't ... work?" What to do in case of problems
- ccah-500 第25题 what do you need to do when adding a new slave node to cluster
- ccah-500 第45题 You want to minimize the chance of data loss in your cluster. What should you do
- Why do you need to put #!/bin/bash at the beginning of a script file?
- 读书心得-Do we Need Hundreds of Classifiers to Solve Real World Classification Problems
- geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?
- 【论文笔记】What Value Do Explicit High Level Concept Have in Vision to Language Problems?
- What you may need to know while calling Application Module methods from Java EE components such as E
- Work with Passion: How to Do What You Love for a Living
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”错误的处理
- 关于“This file has been modified outside of the source editor. Do you want to reload it?”错误的处理
- (Page 3 of 3 )A walking tour of JavaBeans What JavaBeans is, how it works, and why you want to use it
- Do you think the advantages of charging people for admission to museums outweigh the disadvantages?
- failed to sync branch You might need to open a shell and debug the state of this repo
- failed to sync branch You might need to open a shell and debug the state of this repo
- do you want to buy motor of auto window,come to this website :www.kingsmotor.cn
- LOAD BALANCING, AFFINITY, PERSISTENCE, STICKY SESSIONS: WHAT YOU NEED TO KNOW
- flask_socket_io中报错RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for more information.的解决办法
- Source insight上修改samba共享ubuntu上内核源程序文件出现"Confirm by typing ‘yes' below"、"has been changed outside of the editor. Do you want to