在JSP页面中,正确引入JavaBean的是()。 A: <%jsp: useBean id ="myBean” scope ="page” class="pkg.MyBean" %> B: <jsp: useBean name ="myBean” scope ="page” class="pkg.MyBean"> C: <jsp: useBean id ="myBean” scope ="page” class="pkg.MyBean”/> D: <jsp: useBean name ="myBean” scope ="page” class="pkg.MyBean”/>
在JSP页面中,正确引入JavaBean的是()。 A: <%jsp: useBean id ="myBean” scope ="page” class="pkg.MyBean" %> B: <jsp: useBean name ="myBean” scope ="page” class="pkg.MyBean"> C: <jsp: useBean id ="myBean” scope ="page” class="pkg.MyBean”/> D: <jsp: useBean name ="myBean” scope ="page” class="pkg.MyBean”/>
下面程序段中不正确的是( )。 A: package myPackage;public class A{} B: package myPackage; class B{ } C: package myPackage; import java.io.*; public class C{ } D: import java.awt.Color; package myPackage; class D{ }
下面程序段中不正确的是( )。 A: package myPackage;public class A{} B: package myPackage; class B{ } C: package myPackage; import java.io.*; public class C{ } D: import java.awt.Color; package myPackage; class D{ }
在J2EE中,如果a是b的父类,b是c的父类,c是d的父类,它们都在包mypackage中。则以下正确的是() A: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”b”> B: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”object”/> C: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”mypackage.a”/> D: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”a/”>
在J2EE中,如果a是b的父类,b是c的父类,c是d的父类,它们都在包mypackage中。则以下正确的是() A: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”b”> B: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”object”/> C: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”mypackage.a”/> D: <jsp:userbean id=”mybean” scope=”page” class=”mypackage.d” type=”a/”>
在JSP中想要使用JavaBean,其存放位置mypackage.mybean,哪项是写法正确的? A: <jsp:usebean id="mybean" name="mypackage.mybean"> B: <jsp:useBeanclass="mypackage.mybean.class"/> C: <jsp:usebean name="mybean" class=" mypackage.mybean"> D: <jsp:useBean id="mybean" class="mypackage.mybean"/>
在JSP中想要使用JavaBean,其存放位置mypackage.mybean,哪项是写法正确的? A: <jsp:usebean id="mybean" name="mypackage.mybean"> B: <jsp:useBeanclass="mypackage.mybean.class"/> C: <jsp:usebean name="mybean" class=" mypackage.mybean"> D: <jsp:useBean id="mybean" class="mypackage.mybean"/>
在JSP页面中,()可以正确引入JavaBean。 A: <%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %> B: <jsp: useBean name =”myBean” scope =”page” class=”pkg.MyBean” > C: <jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” /> D: <jsp: useBean name =”myBean” scope =”page” class=”pkg.MyBean” />
在JSP页面中,()可以正确引入JavaBean。 A: <%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %> B: <jsp: useBean name =”myBean” scope =”page” class=”pkg.MyBean” > C: <jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” /> D: <jsp: useBean name =”myBean” scope =”page” class=”pkg.MyBean” />
在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是() A: ”mybean”scope=”pageContext”class=”mypackage.mybean”/> B: <jsp:useBeanclass=”mypackage.mybean.class”/> C: ”mybean”class=”mypackage.mybean.java”> D: ”mybean”class=”mypackage.mybean”/>
在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是() A: ”mybean”scope=”pageContext”class=”mypackage.mybean”/> B: <jsp:useBeanclass=”mypackage.mybean.class”/> C: ”mybean”class=”mypackage.mybean.java”> D: ”mybean”class=”mypackage.mybean”/>
在JSP页面中,正确引入JavaBean的是() A: <%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %> B: <jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” > C: <jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” /> D: <jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” />
在JSP页面中,正确引入JavaBean的是() A: <%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” %> B: <jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” > C: <jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” /> D: <jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” />
假设在Spring配置文件中有这样的配置信息<;bean id="foo" class="com.spring.Foo"/>;则要创建一个Spring Bean的正确用法是? A: MyBean myBean = (MyBean)factory.getBean("foo"); B: MyBean myBean = (MyBean)factory.getBean("com.spring.Foo"); C: MyBean myBean = (MyBean)factory.newBean("foo"); D: MyBean myBean = (MyBean)factory.newBean("com.spring.Foo");
假设在Spring配置文件中有这样的配置信息<;bean id="foo" class="com.spring.Foo"/>;则要创建一个Spring Bean的正确用法是? A: MyBean myBean = (MyBean)factory.getBean("foo"); B: MyBean myBean = (MyBean)factory.getBean("com.spring.Foo"); C: MyBean myBean = (MyBean)factory.newBean("foo"); D: MyBean myBean = (MyBean)factory.newBean("com.spring.Foo");
假定以下程序代码都分别放在MyClass.java文件中,哪些程序代码能够编译通过? A: import java.awt.*;package myPackage;class MyClass {} B: package myPackage;import java.awt.*;class MyClass{} C: /*This is a comment */package myPackage;import java.awt.*;public class MyClass{} D: /*This is a comment */package myPackage;import java.awt.*;public class OtherClass{}
假定以下程序代码都分别放在MyClass.java文件中,哪些程序代码能够编译通过? A: import java.awt.*;package myPackage;class MyClass {} B: package myPackage;import java.awt.*;class MyClass{} C: /*This is a comment */package myPackage;import java.awt.*;public class MyClass{} D: /*This is a comment */package myPackage;import java.awt.*;public class OtherClass{}
【单选题】假设下面的程序代码都放在 MyClass.java 文件中,()程序代码能够编译通过。 A. import java.awt.*; package mypackage; class MyClass { } B. package mypackage; import java.awt.*; public class myClass { } C. int m; package mypackage; Import java.awt.*; class MyClass { } D. /*This is a comment*/ package mypackage; import java.awt.*; public class MyClass { }
【单选题】假设下面的程序代码都放在 MyClass.java 文件中,()程序代码能够编译通过。 A. import java.awt.*; package mypackage; class MyClass { } B. package mypackage; import java.awt.*; public class myClass { } C. int m; package mypackage; Import java.awt.*; class MyClass { } D. /*This is a comment*/ package mypackage; import java.awt.*; public class MyClass { }