摘要:
Thread Definition of Synchronized Synchronized block in java are marked with the synchronized keywork. All synchronized blocks synchronized on the sam 阅读全文
摘要:
代码执行预料不到的情况,或出错的可能性很大时,使用try-catch语句 构造一个文件输入流(上传文件时,线上环境的内存情况不确定)出错的可能性很大 文件上传写入, 数据库事务的提交,还有摄像头和打印机的使用 使用数据库事务的时候使用try-catch,如果事务执行成功就提交事务,如果事务执行失败就 阅读全文
摘要:
Server implementation Open a socket on the server that listens to the UDP requests. (I’ve chosen 8888) Make a loop that handles the UDP requests and r 阅读全文
摘要:
Find one thing you know the code does, and trace those actions backward, starting at the end Say, for example, you know that the code you're viewing u 阅读全文