网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在JSP页面中使用格式给Long类型的Bean属性赋值,会调用哪个数据类型转换方法。()

  • A、 Long.parseLong(String s)
  • B、 Integer.parseInt(Stirng s)
  • C、 Double.parseDouble(String s)
  • D、 不确定

参考答案

更多 “在JSP页面中使用格式给Long类型的Bean属性赋值,会调用哪个数据类型转换方法。()A、 Long.parseLong(String s)B、 Integer.parseInt(Stirng s)C、 Double.parseDouble(String s)D、 不确定” 相关考题
考题 下面的哪些程序段可能导致错误? ( ) Ⅰ: String s = "Gone with the wind"; String t = "good "; String k = s + t; Ⅱ: String s = "Gone with the wind"; String t; t = s[3] + "one"; Ⅲ: String s = "Gone with the wind"; String standard = s.toUpperCase(); Ⅳ: String s = "home directory"; String t = s-"directory":A.Ⅱ、ⅢB.Ⅱ、ⅣC.Ⅰ、ⅣD.Ⅲ、Ⅳ

考题 request对象可以使用( )方法获取表单中某输入框提交的信息。A.getParameter(String s)B.getValue(String s)C.getParameterNames(String s)D.getParameterValue(String s)

考题 下列程序中,实现将封装数据类型Integer和基本数据类型int之间的转换,以及Integer,int类型和String类型之间的转换。请将程序补充完整。程序运行结果如下:123456456public class ex7_1{public static void main(String[]args) {Integer intObj;int n;String s;intObj = new Integer(123);n=intObj.__________;System.out.printin(Integer.toString(n));s=new String("456");intObj=Integer._________;System.out.println(intObj.__________);n=Integer.parseInt(s);System.out.println(Integer.toString(n));}}

考题 为了从HTML文件中获取参数,在Applet程序中应该编写的代码是 ( )A.在start()方法中加入语句String s=getParameter("buttonLabel");B.在init()方法中加入语句String s=Parameter("buttonLabel");C.在init()方法中加入语句String s=getParameter("BUTTONLABEL");D.在start()方法中加入语句String s=getParameter("BUTTONLABEL");

考题 下列的哪个程序段可能导致错误? ( )A.String s="hello"; String t="good"; String k=s+t;B.String s="hello"; String t; t=s[3]+"one";C.String s="hello"; String standard=s.toUpperCase();D.String s="hello"; String t=s+"good";

考题 下列哪个程序段可能导致错误?A.String s="hello"; String t= "good"; String k=s+ t;B.String s="hello"; String t; t=s[3]+"one";C.String s="hello"; String standard=s. toUpperCaseD.String s="hello"; String t =s+ "good"

考题 下列语句能给数组赋值而不使用for循环的是A.myArray{[1]="One";[2]="Two";[3]="Three";}B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"};C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"};D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};

考题 下列语句能给数组赋值,而不使用for循环的是A.myArray{[1]="One";[2]="Two";[3]="Three";}B.String s[5]=new String[] {"Zero","One","Two","Three","Four"};C.String s[]=new String[] {"Zero","One","Two","Three","Four"};D.String s[]=new String[]= {"Zero","One","Two","Three","Four"};

考题 关于以下代码段的说法正确的是( )。 (1) String s="abcde"; (2) String Buffer s1=new String Buffer("abcde"); (3) if(s.equals(s1)) (4) s1=null: (5) if(s1.equals(s)) (6) s=null;A.第(1)行编译错误,String的构造器必须明确调用B.第(3)行编译错误,因为s与s1有不同的类型C.编译成功,但执行时在第(5)行有异常抛出D.编译成功,执行过程中也没有异常抛出

考题 下列的哪个程序段可能导致错误?A.String s = "hello"; String t = "good"; String k = s + t;B.String s = "hello"; String t; t = s[3] + "one";C.String s = " hello "; String standard = s.toUpperCase( );D.String s = "hello"; String t = s + "good";

考题 使用〈jsp:setProperty〉动作标记可以在JSP页面中设置Bean的属性,但必须保证Bean有对应的方法是()。A、SetXxx方法B、setXxx方法C、getXxx方法D、GetXxx方法

考题 下面的哪些程序片断可能导致错误() A、String s = "Gone with the wind";  String t = " good ";  String k = s + t;B、String s = "Gone with the wind";  String t;  t = s[3] + "one";C、String s = "Gone with the wind";  String standard = s.toUpperCase();D、String s = "home directory"; String t = s - "directory"

考题 下面哪个是对字符串String的正确定义()。A、String s1=null;B、String s2=’null’;C、String s3=(String)‘abc’;D、String s4=(String)‘/uface’;

考题 下列不是 String 类的方法的是()A、charAt(int index)B、indexOf(String s)C、beginWith(String s)D、endsWith(String s)

考题 使用String s1=new String("Java");String s2=new String("Java")创建两个字符串时,s1,s2使用不同的内存空间

考题 执行语句“stringstr("abc");”时,系统会自动调用string类的构造函数()。A、string()B、string(constchar*s)C、string(conststringstr)D、string(size_typen,charc)

考题 JSP页面程序片中可以使用下列哪个方法将strNumx=request.getParamter(“ix”)得到的数据类型转换为Double类型()。A、Double.parseString(strNumx)B、Double.parseDouble(strNumx)C、Double.parseInteger(strNumx)D、Double.parseFloat(strNumx)

考题 request对象可以使用()方法获取表单中某输入框提交的信息。A、getParameter(String s)B、getValue(String s)C、getParameterNames(String s)D、getParameterValue(String s)

考题 在JSP页面中使用〈jsp:setProperty name="bean的名字" property ="*"/〉格式,将表单参数为Bean属性赋值,property="*"格式要求Bean的属性名字()。A、必须和表单参数类型一致B、必须和表单参数名称一一对应C、必须和表单参数数量一致D、名称不一定对应

考题 在JSP页面中使用〈jsp:setProperty name="beanid" property="bean的属性" value="字符串" /〉格式给Long类型的Bean属性赋值,会调用哪个数据类型转换方法?()A、Long.parseLong(String s)B、Integer.parseInt(Stirng s)C、Double.parseDouble(String s)

考题 有语句String s=”hello world”; ,以下操作哪个是不合法的()A、int i=s.length();B、s=3;C、String ts=s.trim();D、String t=s+”!”

考题 Which of the following fragments might cause errors?()    A、 String s = "Gone with the wind";String t = " good ";String k = s + t;B、 String s = "Gone with the wind";String t;t = s[3] + "one";C、 String s = "Gone with the wind";String standard = s.toUpperCase();D、 String s = "home directory";String t = s - "directory";

考题 单选题request对象可以使用()方法获取表单中某输入框提交的信息。A getParameter(String s)B getValue(String s)C getParameterNames(String s)D getParameterValue(String s)

考题 单选题在JSP页面中使用格式给Long类型的Bean属性赋值,会调用哪个数据类型转换方法。()A  Long.parseLong(String s)B  Integer.parseInt(Stirng s)C  Double.parseDouble(String s)D  不确定

考题 单选题在JSP页面中使用〈jsp:setProperty name="beanid" property="bean的属性" value="字符串" /〉格式给Long类型的Bean属性赋值,会调用哪个数据类型转换方法?()A Long.parseLong(String s)B Integer.parseInt(Stirng s)C Double.parseDouble(String s)

考题 单选题下列不是 String 类的方法的是()A charAt(int index)B indexOf(String s)C beginWith(String s)D endsWith(String s)

考题 单选题在JSP页面中使用〈jsp:setProperty name="bean的名字" property ="*"/〉格式,将表单参数为Bean属性赋值,property="*"格式要求Bean的属性名字()。A 必须和表单参数类型一致B 必须和表单参数名称一一对应C 必须和表单参数数量一致D 名称不一定对应