
java
ws61925
这个作者很懒,什么都没留下…
展开
-
ArrayList和LinkedList的区别
ArrayList是利用array来实现的,所以读取速度很快,LinkedList是用链表实现的,所以增删速度比较快. 在大数据量读取的时候LinkedList比ArrayList慢很多. 如果不考虑性能方面的影响,可以将所有arraylist替换成linkedlist.如果大量数据要做删除和增加的动作,应该是LinkedLIst,因为ArrayList每删一个,这个被删的数据后面所有...原创 2008-12-18 09:25:28 · 118 阅读 · 0 评论 -
java认证
java认证模拟题原创 2009-02-01 13:37:09 · 135 阅读 · 0 评论 -
java按位取反
public class test (2. public static void main (String args[]) {3. int i = 0xFFFFFFF1;//十六进制4. int j = ~i;//~是按位取反(32位)5.6. }7. )What is the decimal value of j at line 5?A. 0B. 1C. ...2009-02-01 13:39:32 · 424 阅读 · 0 评论 -
java异或
1. Public class test (2. Public static void main (String args[]) (3. System.out.printIn (6 ^ 3);4. )5. )What is the output?答案: 50000 0000 0000 0000 0000 0000 0000 0110 0000 0000 0000 0...2009-02-01 14:40:11 · 127 阅读 · 0 评论