1,throws/throw的区别? throws: 用在方法声明后面,跟的是异常类名 可以跟多个异常类名,用逗号隔开 表示抛出异常,由该方法的调用者处理 throws表示出现异常的一种可能,不一定会发生这些异常 throw: 用在方法体内,跟的是异常对象名 ... ...
分类:
编程语言 时间:
2017-03-01 00:23:02
阅读次数:
194
译者注:个人觉得用定时任务来跑垃圾回收不是很好的例子,从译者接触到的项目来看,比较常见的是用定时任务来进行非实时计算,清除临时数据、文件等。在本文里,我会给大家介绍3种不同的实现方法:1.普通thread实现2.TimerTask实现3.ScheduledExecutorService实现 一、普通 ...
分类:
编程语言 时间:
2017-02-28 20:39:22
阅读次数:
190
@RequestMapping(value = "/downLoad") public void downLoad(HttpServletResponse response, String value,String oldName ,String dateFileName) throws Parse ...
分类:
编程语言 时间:
2017-02-27 18:53:49
阅读次数:
177
本文转载自:http://blog.csdn.net/mengxiangyue/article/details/6818611 Java中我们可能都遇到过这样的情况,在我们将一个对象做为参数传给一个函数的时候,我们希望在这个函数中所做的操做,并不会影响到这个对象本身。但是在java传递都是引用,所以 ...
分类:
编程语言 时间:
2017-02-27 00:45:16
阅读次数:
192
import requests url = 'https://github.com/timeline.json' r = requests.get(url) json_obj = r.json() repos = set() # we want just unique urls for entry ... ...
分类:
Web程序 时间:
2017-02-26 17:48:31
阅读次数:
345
一、下载activemq 这个例子使用的版本是5.9.0 链接:http://download.csdn.net/download/hpw90333/6652367 先下载了5.14.2运行后出错: javax.jms.JMSException: Cannot send, channel has a ...
分类:
编程语言 时间:
2017-02-26 15:17:56
阅读次数:
1387
URL: cnblogs.com: https://home.cnblogs.com/u/--CYH--/ github.com : https://github.com/JohnsonGreen Error: It is a project of analyzing “weibo”. I buil ...
分类:
其他好文 时间:
2017-02-26 12:21:55
阅读次数:
164
hbase 执行批量删除时出现错误: Exception in thread "main" java.lang.UnsupportedOperationException at java.util.AbstractList.remove(AbstractList.java:161) at org.a ...
分类:
编程语言 时间:
2017-02-25 23:52:55
阅读次数:
1293
Normally, documents on different pages are able to communicate between each other only if their domains, protocols and ports match up. HTML 5 specific ...
分类:
Web程序 时间:
2017-02-25 23:43:35
阅读次数:
240
Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex ...
分类:
其他好文 时间:
2017-02-25 21:16:46
阅读次数:
203