主题:【原创】Java 1.5新特点的一些体验 -- 老兵帅客
So when should you use varargs? As a client, you should take advantage of them whenever the API offers them. Important uses in core APIs include reflection, message formatting, and the new printf facility. As an API designer, you should use them sparingly, only when the benefit is truly compelling. Generally speaking, you should not overload a varargs method, or it will be difficult for programmers to figure out which overloading gets called.
- 相关回复 上下关系8
【原创】Java 1.5新特点的一些体验 老兵帅客 字510 2004-10-01 15:51:55
5. varargs变长参数表 老兵帅客 字1822 2004-10-02 18:58:27
😉我们是否应该使用这个Feature呢?Sun的观点是:
4. Autoboxing and Unboxing 老兵帅客 字418 2004-10-02 18:36:38
3. Enumerated Types 老兵帅客 字2188 2004-10-02 18:25:47
.NET的enum和Java不一样,不是Class. Highway 字1283 2004-10-03 21:01:28
2. Generics 老兵帅客 字2941 2004-10-01 17:35:35
这里又一篇关于C# Generics的详细介绍,比较不错! Highway 字107 2004-10-02 06:56:30