• 2021-04-14
    String s = (Double.valueOf("3.1415926")).toString();
  • 内容

    • 0

      在C#中,以下常量定义正确的是 ( )。 A: A.const double PI 3.1415926; B: B.const double e=2.7; C: C.define double PI 3.1415926; D: D.define double e=2.7;

    • 1

      String s=”127”将s转换为int的代码:int i= ,将s转换为double的代码:double d= 。

    • 2

      以下函数中,不是Object类所有的是() A: notify B: valueOf C: toString D: wait

    • 3

      Java语言中所有类都包含的成员是( )。 A: toString() B: compareTo() C: length() D: valueOf()

    • 4

      读代码:public class foo {static String s;public static void main (String[]args) {System.out.println (“s=” + s);}}结果是: A: The code compiles, but a NullPointerException is thrown when toString is called B: The code compiles and “s=null” is printed C: The code does not compile because string s cannot be referenced D: The code does not compile because string s is not initialized E: The code compiles and “s=” is printed