一:泛型简介:
(1)所谓泛型,就是变量类型的参数化。
泛型是JDK1.5中一个最重要的特征。通过引入泛型,我们将获得编译时类型的安全和运行时更小的抛出ClassCastException的可能。在JDK1.5中,你可以声明一个集合将接收/返回的对象的类型。使用泛型时如果不指明参数类型,即泛型类没有参数化,会提示警告,此时类型为Object。
(2)为什么使用泛型
使用泛型的典型例子,是在...
分类:
编程语言 时间:
2014-10-09 03:20:27
阅读次数:
308
【动态网页技术发展】cgi(common gateway interface)效率低--->asp(html+js+com)扩展难;com开发难度大,一般是微软开发;安全性低;实现企业级功能困难--->php(跨平台性良好,多种数据库支持,良好的安全性,免费使用;安装复杂,缺少企业支持) PHP+M...
分类:
其他好文 时间:
2014-10-09 02:59:47
阅读次数:
276
JNI其实是Java Native Interface的简称,也就是java本地接口。它提供了若干的API实现了和Java和其他语言的通信(主要是C&C++)。也许不少人觉得Java已经足够强大,为什么要需要JNI这种东西呢?我们知道Java是一种平台无关性的语言,平台对于上层的java代码来说是透...
分类:
其他好文 时间:
2014-10-09 02:25:57
阅读次数:
173
代码:@interface HttpProcessor : NSObject { NSMutableData *buffer;}@property BOOL finished;@property (strong, nonatomic) NSString *html;@end@implement...
分类:
其他好文 时间:
2014-10-09 02:00:57
阅读次数:
141
转载.Book DescriptionPublication Date:August 12, 2013Core Animation is the technology underlying Apple’s iOS user interface. By unleashing the full powe...
分类:
移动开发 时间:
2014-10-09 01:53:07
阅读次数:
386
acpid
ACPI(全 称 Advanced Configuration and Power Interface)服务是电源管理接口。建议所有的笔记本用户开启它。一些服务器可能不需要 acpi。支持的通用操作有:“电源开关“,”电池监视“,”笔记本 Lid 开关“,“笔记本显示屏亮度“,“休眠”, “挂机”,等等。
anacron, atd, crond
这几个调度程序有很小的差别。 ...
分类:
系统相关 时间:
2014-10-09 01:37:48
阅读次数:
1408
定义:@interface ViewController (){ UIActivityIndicatorView *testActivityIndicator;}实例化,开始旋转:-(void) showWaitStatus{ NSLog(@"wait..."); testActi...
分类:
移动开发 时间:
2014-10-09 01:23:07
阅读次数:
184
@interface ViewController : UIViewController{ NSArray *pickerArray; NSArray *subPickerArray; NSDictionary *dicPicker;}- (IBAction)selectButto...
分类:
其他好文 时间:
2014-10-09 01:21:37
阅读次数:
186
#import "ViewController.h"#import "Fish.h"#import "Cat.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super v....
分类:
其他好文 时间:
2014-10-09 01:02:17
阅读次数:
261
1. 使用的实例: package?com.rpc;
import?org.apache.hadoop.ipc.VersionedProtocol;
public?interface??MyProtocol?extends?VersionedProtocol{
public?static?final?long?versionID=1L;
String?...
分类:
其他好文 时间:
2014-10-09 00:27:27
阅读次数:
292