单项选择题

以下代码段中,存在编译错误的是()。

A.Object obj="object";
B.
C.
D.String s = (String)new Object();