public class InitialOrderTest { // 静态变量 public static String staticField = "静态变量"; // 变量 public String field = "变量"; // 静态初始化块 static { System.out.pri...
分类:
其他好文 时间:
2014-07-19 19:14:38
阅读次数:
207
在看hadoop 的二次排序的时候,改写了下, 加了第三个参数, 本来以为是在 public int compareTo(IntPair o) { System.out.println("-----------compareTo"); if (first != o.first...
分类:
其他好文 时间:
2014-07-19 17:10:26
阅读次数:
256
char chars[] ={'a','b','c'}; String s = new String(chars); int len = s.length();//字符串长度 System.out.println(chars);//ab System.out.println(s);//abc...
分类:
其他好文 时间:
2014-07-19 16:10:36
阅读次数:
206
1、android4.2.2 '/root/origin_android/mokesoures/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.dex' as 'classes.dex'.../root/or...
分类:
移动开发 时间:
2014-07-19 15:35:32
阅读次数:
253
场景先看段代码,考虑以下场景,其运行结果是什么?public class Test { static int i = 8; public void printI() { int i = 88; System.out.println(this.i); } ...
分类:
其他好文 时间:
2014-07-19 14:07:59
阅读次数:
159
1 public static void main(String[] args) { 2 String s = "你好"; 3 String cn = ""; 4 System.out.println("src: " + s); 5 ...
分类:
其他好文 时间:
2014-07-19 12:26:34
阅读次数:
147
OracleDefault DatabasesSYSTEMAvailable in all versionsSYSAUXAvailable in all versionsComment Out QueryThe following can be used to comment out the res...
分类:
数据库 时间:
2014-07-19 09:39:56
阅读次数:
605
1.不同调用顺序,不同调用方式的比较 1 class Some { 2 static{ 3 System.out.println("1"); 4 } 5 6 public Some(){ 7 System.out.println("2...
分类:
其他好文 时间:
2014-07-19 09:00:23
阅读次数:
172
1.静态方法是使用公共内存空间的,就是说所有对象都可以直接引用,不需要创建对象再使用该方法。class Cat{ protected static String color ="random"; public void showCatColor(){ System.out....
分类:
其他好文 时间:
2014-07-19 08:33:37
阅读次数:
214
1.What For将基于内存的数据存储到磁盘上,达到持续存储。2. HOW方法一: 将数据写到文件中常规的处理方式1 #file.x被打开的文件,model打开文件的方式2 out=open('file.x','model')3 #print将item写入到file指示的文件中,item可以是字符...
分类:
编程语言 时间:
2014-07-19 00:07:58
阅读次数:
205