自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 问答 (2)
  • 收藏
  • 关注

原创 CountDownLatch

http://www.javamex.com/tutorials/threads/CountDownLatch.shtml Coordinating threads with CountDownLatch The CountDownLatch class allows us to coordinate the starting andstopping of thread...

2011-01-24 23:26:35 203

原创 防御性拷贝(Defensive copying)

A mutable object is simply an object which can change its state afterconstruction. For example, StringBuilder and Date aremutable objects, while String and Integer are immutable objects...

2011-01-18 22:27:33 556

原创 java之不可变对象2(immutable objects in java)

Immutable objects are simply objects whose state (the object's data) cannot change after construction.Examples of immutable objects from the JDK include String and Integer.Immutabl...

2011-01-18 22:15:34 213

原创 java之不可变对象1(immutable objects in java)

an immutable object is an object whose state cannot be modified after it is created.不可变对象一旦被创建就它的状态就不能被修改。 A classic example of an immutable object is an instance of the Java String class...

2011-01-18 21:53:17 211

原创 extjs combobox 只读

实现效果:extjs combobox 只读,也就是说只能从提供的列表中选择,而不能手动输入只需要添加一个属性: editable: false    

2011-01-18 11:26:08 619

原创 java final 与 线程安全(Thread-safety)

Thread-safety with the Java final keyword来源于:http://www.javamex.com/tutorials/synchronization_final.shtml As of Java 5, the final keyword is a very important and often overlooked(漏看,忽略) ...

2011-01-18 01:00:58 248

原创 java final域

参考: http://liyuan2005.iteye.com/blog/209206 1.当你在类中定义变量时,在其前面加上final关键字,那便是说,这个变量一旦被初始化便不可改变,这里不可改变的意思对基本类型来说是其值不可变,而对于对象变量来说其引用不可再变。2.其初始化可以在两个地方,一是其定义处,也就是说在final变量定义时直接给其赋值,二是在构造函数中。这...

2011-01-18 00:42:54 150

ubuntu9.10 快速搭建简易的ftp服务器

1. 安装vsftpd  打开终端,输入 sudo apt-get install vsftpd 2. 安装完毕后会自动生成一个帐户"ftp",/srv下也会增加一个ftp文件夹。    注意:1) 不同的ubuntu版本。这里生成的文件夹可能不一样。其他生成路径:/home/ftp              2) 不要修改/srv/ftp的权限为777.权限设置为...

2011-01-01 19:56:40 124

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除