以下声明合法的是( )

A. default String s;
B. public final static native int w()
C. abstract double d;
D. abstract final double hyperbolicCosine()

参考解答

B A:default 不写 C:abstract 不能修饰属性 D:abstract 不能与final连用


results matching ""

    No results matching ""