单项选择题

用整数10创建一个Integer类的对象,下列各语句中能完成此功能的是( )。

A.Integer i=new Integer(10);
B.Integer i=10;
C.int i=10;
D.Integer i=Integer(10);