运行时系统在方法的调用堆中查找,从生成异常的方法开始进行回溯,直至找到含有相应的()为止,该过程称为捕获异常。
查看答案
请阅读下面程序性,程序运行结果中在“length=”后输出的值是()public class Test {public static void main(String[] args) {StringBuilder strb=new StringBuilder("test");System.out.println("builder="+strb);System.out.println("length="+strb.length());}}
用()括起来的字符串是字符串常量,又称为无名字符串对象,由Java自动创建
new String("hello")实际上创建了 ()个String对象