![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java基础
文章平均质量分 79
changer328
这个作者很懒,什么都没留下…
展开
-
阿里笔试Java初始化
package dian; public class Test { public static int k=0; public static Test t1=new Test("t1"); public static Test t2=new Test("t2"); public static int i=print("i"); public static int n=99;原创 2013-09-23 08:21:47 · 1062 阅读 · 0 评论 -
锐捷笔试CountDownLatch
public static void main(String[] args) { final CountDownLatch countDown = new CountDownLatch(2); for(int i=0;i<10;i++){ Thread thread=new Thread(new Runnable(){ public void run() {原创 2013-09-14 15:00:50 · 530 阅读 · 0 评论 -
Integer.valueOf(String) 方法之惑
有个仁兄在 StackOverflow 上发起了一个问题,是这么问的: “ 我被下面的代码搞晕了,为什么它们会返回不同的值?” 1 2 3 System.out.println(Integer.valueOf("127")==Integer.valueOf("127")); System.out.println(Integer转载 2014-02-11 16:57:58 · 668 阅读 · 0 评论 -
Executor框架
Executor和ExecutorService、Executors类方便创建线程池、Callable和Runnable、Future和FutureTask,以及Executor相关类的结构原创 2014-11-03 15:14:53 · 770 阅读 · 0 评论