[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fav59RelqsdVSo4xmsxRtQQymom8rzpy7xHfcTpvuDG4":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":10,"question":14,"related":15,"source":25,"type":67},[],"2026-03-17 18:44:07",1094039199,[8,9],"对","错",{"courseId":11,"workId":12,"workName":13},"1000146616","64501168","第六章单元测试","在Java中,StringBuffer对象的内容可以被修改,而String对象一旦创建其内容不可变;因此,在频繁进行字符串拼接操作时,使用StringBuffer通常比String具有更高的性能",[16,27,36,45,55,64,68,77,82,91],{"answer":17,"createTime":18,"id":19,"options":20,"question":24,"source":25,"type":26},[],"2026-03-17 18:44:06",1094039060,[21,22,23,23],"*","+","","以下哪个元字符在正则表达式中表示&quot;匹配前面的字符一次或多次&quot;","v2",0,{"answer":28,"createTime":18,"id":29,"options":30,"question":35,"source":25,"type":26},[],1094039093,[31,32,33,34],"LocalDate.now()","new LocalDate()","LocalDate.ofNow()","LocalDate.create()","以下哪种方式可以正确创建表示当前日期的LocalDate对象",{"answer":37,"createTime":18,"id":38,"options":39,"question":44,"source":25,"type":26},[],1094039107,[40,41,42,43],"使用相同的种子创建多个 Random 实例,它们生成的随机数序列完全不同","如果不指定种子,Random 实例将无法生成随机数","每次运行程序时,new Random() 使用系统时间作为默认种子,因此生成的序列通常不同","设置种子后只能生成整数类型的随机数","以下关于 Random 类种子机制的说法中,哪一项是正确的",{"answer":46,"createTime":18,"id":47,"options":48,"question":53,"source":25,"type":54},[],1094039119,[49,50,51,52],"Pattern类用于编译正则表达式字符串,生成一个可重用的模式对象","Matcher类的实例可以通过Pattern对象的matcher()方法获得","每个Matcher对象可以同时关联多个Pattern模式","Pattern类提供了matches()静态方法,可用于快速匹配整个字符串而无需显式创建Matcher","在Java中使用正则表达式进行字符串匹配时,关于Pattern和Matcher类的关系与使用方式,以下哪些说法是正确的",1,{"answer":56,"createTime":18,"id":57,"options":58,"question":63,"source":25,"type":26},[],1094039133,[59,60,61,62],"LocalDateTime.parse(&quot;2025-04-05 14:30&quot;, DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd HH:mm&quot;))","LocalDateTime.parse(&quot;2025-04-05 14:30&quot;, DateTimeFormatter.ISO_LOCAL_DATE)","LocalDateTime.from(DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd HH:mm&quot;).format(&quot;2025-04-05 14:30&quot;))","LocalDateTime.parse(&quot;2025-04-05 14:30&quot;, DateTimeFormatter.ofPattern(&quot;dd\u002FMM\u002Fyyyy hh:mm&quot;))","给定字符串&quot;2025-04-05 14:30&quot;,要将其解析为LocalDateTime对象,应如何正确使用DateTimeFormatter",{"answer":65,"createTime":5,"id":6,"options":66,"question":14,"source":25,"type":67},[],[8,9],3,{"answer":69,"createTime":5,"id":70,"options":71,"question":76,"source":25,"type":26},[],1094039207,[72,73,74,75],"String str = &quot;Hello&quot;","String str = new String(&quot;Hello&quot;)","String str1 = &quot;Hello&quot;; String str2 = &quot;Hello&quot;","String str = &quot;Hel&quot; + &quot;lo&quot;","在 Java 中,以下关于 String 类对象初始化的代码片段中,哪一项会在字符串常量池中创建新的字符串对象",{"answer":78,"createTime":5,"id":79,"options":80,"question":81,"source":25,"type":67},[],1094039247,[8,9],"Math.abs(-5.3) 的返回值是 5.3",{"answer":83,"createTime":5,"id":84,"options":85,"question":90,"source":25,"type":54},[],1094039255,[86,87,88,89],"PI","E","MAX_VALUE","RANDOM","以下哪些是 Math 类中定义的常量",{"answer":92,"createTime":5,"id":93,"options":94,"question":99,"source":25,"type":26},[],1094039267,[95,96,97,98],"Math.random() * 10","(int)(Math.random() * 10)","(int)(Math.random() * 11)","Math.round(Math.random() * 10)","下列哪个方法调用可以生成一个介于 0(含)和 10(不含)之间的整数随机数"]