- 浏览: 69959 次
- 性别:
- 来自: 山西
-
最新评论
文章列表
原文章地址:http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html
Java SE 7 Features and Enhancements
Java Platform, Standard Edition 7 is a major feature release. This document includes information on features and enhancements in Java SE 7 and in JDK 7, Oracle's implementation of J ...
- 2014-09-03 18:43
- 浏览 368
- 评论(0)
What's New in JDK 8
Java Platform, Standard Edition 8 is a major feature release. This document summarizes features and enhancements in Java SE 8 and in JDK 8, Oracle's implementation of Java SE 8. Click the component name for a more detailed description of the enhancements
for that component.
...
- 2014-09-03 18:42
- 浏览 1120
- 评论(0)
http://www.oracle.com/technetwork/java/javase/features-141434.html原文章:
JavaSE 6技术变化集锦
JDK Documentation
Java Platform, Standard Edition 6 is a major feature release. The following list highlights many of the significant features and enhancements in Java SE 6 since the prior major release, J2SE ...
- 2014-09-03 18:37
- 浏览 618
- 评论(0)
文章来源:http://alexhi.sinaapp.com/archives/500
【1:开始及建立索引】
在了解 Solr 前推荐先了解一下 Lucene,Solr 基于 Lucene。
内容是官方教程,原文链接见:Solr
Tutorial。我对其进行了简单的翻译。
文中使用的是 Linux 系 ...
- 2014-08-28 15:47
- 浏览 512
- 评论(0)
public static int bytes2int(byte[] b) {
int mask = 0xff;
int temp = 0;
int res = 0;
for (int i = 0; i < 4; i++) {
res <<= 8;
temp = b[i] & mask;
res |= temp;
}
return res;
}
public static byte[] int2bytes(int num) {
byte[] b = new byte[4];
for (i ...
- 2014-08-25 15:54
- 浏览 394
- 评论(0)
原因:ajax中url有问题,与后台的参数类型不匹配;例如前端传的参数为字符串,后端为整形
解决办法:排除法,不断更换url筛选错误
参考http://www.xker.com/page/e2009/0116/68445.html
1、 encodeURIComponent(”[string]“) decodeURIComponent(”[encodedString]“)
2、 encodeURI(”[string]“) decodeURI(”[encodedString]“)
- 2014-06-06 17:43
- 浏览 778
- 评论(0)
参考http://blog.csdn.net/wenboliang/article/details/4095859
1.
用一条SQL语句 查询出每门课都大于80分的学生姓名
name kecheng fenshu张三语文 81张三数学 75李四语文 76李四数学 90王五语文 81王五数学 100王五英语90
答案一:
select distinct c.name from course c
where c.name in (
select t.name from (
select t2.name,min(fenshu) min from course t2
...
- 2014-03-11 23:44
- 浏览 321
- 评论(0)
1.
package com.gavin.convert;
public class Test3 {
public static void main(String[] args) {
String str1 = new String("abc");
StringBuffer buffer = new StringBuffer("abc");
joinChar(str1);
appendChar(buffer);
System.out.println(str1);
System.out.print ...
- 2014-03-05 00:07
- 浏览 343
- 评论(0)
基础:
byte (1个字节)
short(2个字节)
int(4个字节)
long(8个字节)
char(2个字节)
float(4个字节)
double(8个字节)
boolean(1位)
char型的前256个字符('\u0000'-'\u00FF')与ASCII码中的字符完全重复
'0' - '9'对应 48-57
'a' - 'z‘ 对应 97-122
'A'-'Z' 对应 65-90
1.隐式转换(类型自动提升)
char---|
|----->int --->long--->float--->double
...
- 2014-03-04 23:42
- 浏览 303
- 评论(0)
1.spring配置bean的id与name的区别:
1)用id标识的bean,id需要唯一;而name可以重复;
2)id命名规则更严谨,字母开头,不能有特殊字符和空格;而name可以有特殊字符,但是也没有空格
3)name属性可以“,”隔开指定多个别名;
2.斐波那契数列:
在数学上,斐波纳契数列以如下被以递归的方法定义:F0=0,F1=1,Fn=F(n-1)+F(n-2)(n>=2,n∈N*)
特别指出:0是第0项,不是第1项。
java实现:
package com.gavin;
public class Fibonacci {
public st ...
- 2014-02-24 00:03
- 浏览 241
- 评论(0)
1.结构:
1)
Collection<E>(interface)
|-List<E>
| |-ArrayList<E>
| |-LinkedList<E>
| |-AbstractList<E>
| | |-Vector<E>
| || |-Stack<E>(后进先出)
|-Set<E>
| |-HashSet<E>
| | |-LinkedHashSet<E>
| |-SortedSet<E>(interface)
| | |-Tree ...
- 2014-02-19 00:20
- 浏览 204
- 评论(0)
Java Naming and Directory Interface,Java命名和目录接口;
百度百科提到:
命名服务将名称和对象联系起来,使得我们可以用名称访问对象。目录服务是一种命名服务,在这种服务里,对象不但有名称,还有属性。
命名服务:
给对象起个名称,并将名称和该对象绑定,然后可以通过名称找到相应的对象;
目录服务:
不只保存对象和对应名称的关联,对象还有各种属性,并且可以对属性进行增删改查;
JNDI会在内存中构件一个树形结构或叫层次结构,保存名称和对象、属性;(个人理解)
JNDI类似Jdbc,有两套接口,一套给厂商使用,另一套给开发者使用;
Tomc ...
- 2014-02-18 00:18
- 浏览 250
- 评论(0)
package com.gavin;
public class TestInnerClass {
public static void main(String[] args) {
Outter.Inner inner = new Outter().new Inner();//很少用的方式,但可以这样使用
inner.print();
System.out.println("==================================="+"\n");
Outter.Inner2 inner2 = new Out ...
- 2014-02-16 23:14
- 浏览 290
- 评论(0)
1.子类覆盖父类方法时,子类抛出的异常只能是父类的异常集合的子集,或者子类不抛异常;
2.异常结构:
Throwable
|
----Error(错误:OutOfMemeryError、NoClassDeFoundError等)
----Exception(异常:包含RuntimeException这种非编译期检查异常和非RuntimeException这种检查异常)
|
----RuntimeException(编译期不报错,运行时报错;这种异常可以不throws或try/catch;也可以捕获或抛出)
----IOException(非RuntimeException,编译期 ...
- 2014-02-15 23:32
- 浏览 235
- 评论(0)
1.设计4个线程,其中两个线程每次对j增加1,另外两个线程对j每次减少1.
参考答案:http://zhidao.baidu.com/link?url=HH8aM4LT3rdrwmGrq0Dt6C3-a8qggeggtEKBGdDv36hXIkktnnjPMIWIyOoWvSHHy59AeMB2OF12ccdkdJxyga
方法1:
public class TestThread3 {
private int j;
public static void main(String[] args) {
TestThread3 tt = new TestThread3() ...
- 2014-02-15 15:59
- 浏览 520
- 评论(0)