1 /* 2 方法重载 3 比较两个数据是否相等,参数类型分别为 4 两个byte、两个short、两个int、两个long 5 */ 6 7 class FunctionTest{ 8 public static void main(String[] args){ 9 10 ...
分类:
其他好文 时间:
2015-08-20 13:00:04
阅读次数:
124
内存溢出 out of memory,是指程序在申请内存时,没有足够的内存空间供其使用,出现out of memory;比如申请了一个integer,但给它存了long才能存下的数,那就是内存溢出。 内存泄露 memory leak,是指程序在申请内...
分类:
其他好文 时间:
2015-08-20 11:01:12
阅读次数:
104
在多线程编程中,会经常碰到资源竞争的情况,如果多个线程同时访问同个资源,会照成未知的错误。
如以下实例代码,多个线程对同个全局变量进行加1操作,得到的结果并非是我们想要的结果:
unsigned long g_count_num = 0;
long long getSystemTime() {
struct timeb t;
ftime(&t);
return ...
分类:
编程语言 时间:
2015-08-20 10:37:03
阅读次数:
134
1. int和Integer有什么区别?
答:
int是JAVA八大基本数据类型(byte,shor,int,long,char,boolean,float,double)之一。
JAVA语言为八大基本数据提供了包装类,Integer对应是int类型的包装类,就是把int类型包装成Object对象。
2.DOM解析与SAX解析的不同?
答:
SAX:只能读,不能修改,只能顺序访问...
分类:
其他好文 时间:
2015-08-20 10:32:58
阅读次数:
155
In 6.04, It resolve the BUG that error message will be prompted when executing a single long SQL script with more than thousands of line or the file size of single SQL script more than 200KB....
分类:
数据库 时间:
2015-08-20 09:12:27
阅读次数:
291
构造函数 @Query("select g from Note g where id=?1" ) Note findById(Long id); @Query("select new sample.jpa.domain.Note2(c.id,c.title,c.body,d.id)...
分类:
其他好文 时间:
2015-08-20 01:12:34
阅读次数:
241
Problem DescriptionXinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not very ...
分类:
其他好文 时间:
2015-08-20 01:01:59
阅读次数:
189
//程序开始long startTime = System.currentTimeMillis();.....//程序结束long endTime = System.currentTimeMillis();System.out.println("程序花费时间:"+(endTime-startTime...
分类:
其他好文 时间:
2015-08-19 23:42:31
阅读次数:
137
一、关键字1. 关键字就是C语言提供的有特殊含义的符号,也叫做“保留字”2. C语言一共提供了32个关键字,这些关键字都被C语言赋予了特殊含义auto double int struct break else long switchcase enum register typedef char ex...
分类:
其他好文 时间:
2015-08-19 23:31:57
阅读次数:
201
public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, ...
分类:
编程语言 时间:
2015-08-19 23:03:47
阅读次数:
206