![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java基础
笑谈山野
Research for solving the problem with profit and fun
展开
-
java的基本特征:封装,继承,多态
1.封装 隐藏属性,方法或者实现细节的过程,叫做封装原创 2014-08-18 18:07:03 · 1197 阅读 · 0 评论 -
CountDownLatch的用法
1. CountDownLatch定义一个同步辅助类,在完成一组正在其他线程中执行的操作之前,它允许一个或多个线程一直等待。 2.主要方法 public CountDownLatch(int count); public void countDown(); public void await() throws InterruptedException构造方法参数指定了计数的次数 co转载 2017-06-06 08:46:22 · 308 阅读 · 0 评论