[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fkRrotGQoywJOjDbWO7hygFTLCCPgYljwqEei1I7nZYI":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2024-05-16 19:36:06",144054224,[8,9,10,11],"replace(&quot; &quot;,&quot;&quot;)","replace(&quot;cn&quot;,&quot;com&quot;)","replace(&quot;&quot;,&quot; &quot;)","replace(&quot;com&quot;,&quot;cn&quot;)",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},86,"e668b186b2f02f38f3fb040bb4d5bf79","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Faeed7f4defad210f2933782a5f123643.png","JAVA程序设计","exam_122136437","专项练习:Java API","有一个字符串变量str,初始值为hbsi.com,现在想将该字符串变为hbsi.cn,则以下哪条语句是正确的",[21,32,41,50,59,68,74,82,85,94],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],144054216,[25,26,27,28],"[0,95]","[0.94)","[0.95)","(0.95)","创建一个Random类的对象r,则执行r.nextInt(95);语句,产生的随机数的取值范围是()","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],144054218,[36,37,38,39],"toLowerCase()","toUpperCase()","indexOf()","valueOf()","在java中,声明一个double型变量num,初值为5.6,现在想将num变量转换为字符串,应该使用什么方法",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],144054219,[45,46,47,48],"int n=15","Int n=new Int(num)","int n=new int(num)","Integer n=new Integer(num)","现在有一个整型变量num,初始值为15,则想要将该num变量转换为引用数据类型对象,对象名为n,以下哪些代码是正确的",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":30,"type":31},[],144054220,[54,55,56,57],"每一个Java应用程序运行时都产生一个Runtime类实例","Runtime实例可以将应用程序和运行环境相结合","Runtime类中的方法是多例的","Runtime实例不需要创建,直接通过getRuntime()方法获取","下列对于Runtime的描述中,错误的是()",{"answer":60,"createTime":5,"id":61,"options":62,"question":67,"source":30,"type":31},[],144054221,[63,64,65,66],"length()","lastIndexOf()","charAt()","endsWith()","程序中,判断一个字符串是否以指定子字符串结尾的方法是()",{"answer":69,"createTime":5,"id":70,"options":71,"question":73,"source":30,"type":31},[],144054222,[38,36,65,72],"toCharArray()","在java中,操作字符串时,以下哪个方法可以将字符串转换为字符数组",{"answer":75,"createTime":5,"id":76,"options":77,"question":81,"source":30,"type":31},[],144054223,[78,66,79,80],"startsWith()","contains()","isEmpty()","在一个字符串中,判断该字符串是否包含指定的字符串,可以使用()方法",{"answer":83,"createTime":5,"id":6,"options":84,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":86,"createTime":5,"id":87,"options":88,"question":93,"source":30,"type":31},[],144054225,[89,90,91,92],"rt.exe(&quot;notepad.exe&quot;)","rt.exe(&quot;mspaint.exe&quot;)","rt.exec(&quot;notepad.exe&quot;)","rt.exec(&quot;mspaint.exe&quot;)","现在有一个Runtime类的对象rt,想要通过代码打开Windows操作系统自带的画图工具,以下哪个代码是正确的",{"answer":95,"createTime":5,"id":96,"options":97,"question":102,"source":30,"type":31},[],144054226,[98,99,100,101],"sb.setCharAt(2,&quot;n&quot;)","sb.CharAt(2,'n')","sb.setCharAt(3,'n')","sb.setCharAt(2,'n')","创建了一个StringBuffer对象sb并赋了初值,初始值为abcdpou,则想要将第3个字符内容修改为n,以下选项正确的是()"]