我来我网
https://5come5.cn
 
您尚未 登录  注册 | 菠菜 | 软件站 | 音乐站 | 邮箱1 | 邮箱2 | 风格选择 | 更多 » 
 

« 1 2» Pages: ( 1/2 total )
本页主题: 我的[屏蔽]方式我做主......... 显示签名 | 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

real_eye



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 559
威望: 0
浮云: 1130
在线等级:
注册时间: 2006-03-18
最后登陆: 2011-05-16

5come5帮你背单词 [ gasp /ga:sp/ v. & n. 气喘 ]


我的[屏蔽]方式我做主.........

兄弟们....我要开始了~ 借这个灌水区纪录考题~  别乱捣乱阿!
顶端 Posted: 2009-04-27 14:30 | [楼 主]
real_eye



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 559
威望: 0
浮云: 1130
在线等级:
注册时间: 2006-03-18
最后登陆: 2011-05-16

5come5帮你背单词 [ moslem /'mozlem/ n. & a. 穆斯林(的),伊斯兰教徒(的) ]


1.    Both session and entity beans can implement local and remote client views, and generally the same considerations apply. However, an entity bean must implement a local client view in what situation?
A.    When the application uses message-driven beans.
B.    When the entity bean is a target of a container-managed relationship.
C.    When the entity bean is located in a different JVM from the client.
D.    When the application uses a session bean as a facade to a set of entity beans.
2.    The EJB 2.1 architecture includes an SQL-like query language, EJB Query Language (EJB QL), that is portable across EJB containers. This language can be used to express queries for
A.    Message-driven beans
B.    Session beans implementing remote client views
C.    Entity beans with container-managed persistence
D.    Stateless session beans
3.    An EJB application may use message-driven bean components to asynchronously receive messages provided that the messages are delivered by which message service:
A.    Java Message Service (JMS)
B.    Java API for XML Messaging (JAX-M)
C.    Any other messaging system
D.    JMS, JAX-M, or any other messaging system
E.    None of the above
4.    Implementing a message-driven bean requires that the developer extend two interfaces: a message listener interface and
A.    a javax.ejb.SessionBean interface
B.    a javax.ebj.MessageDrivenBean interface
C.    an event listener interface
D.    a javax.ebj.EJBHome interface
5.    A message-driven bean developed for a JMS messaging system puts its business processing logic within which method:
A.    setSessionContext method
B.    onMessage method
C.    ejbRemove method
D.    setMessageDrivenContext method
E.    a user-defined method
6.    If you use container-managed transaction demarcation, you can set a message-driven bean to participate in a transaction. To ensure that message delivery from the message destination to the message-driven bean is part of the subsequent transactional work, set the message-driven bean's transaction attribute (in the deployment descriptor) to
A.    NotSupported
B.    Mandatory
C.    Required
D.    Supports
7.    The EJB timer service is used for timing notifications. It can be used with
A.    CMP entity beans
B.    both BMP and CMP entity beans
C.    message-driven beans
D.    B and C
E.    A and C
F.    None of the above
8.    EJB Timer objects are stateless objects, with the same characteristics as stateless session beans.
A.    True
B.    False
9.    An enterprise bean may set up a timer notification using the TimerService's createTimer method. Such timer notification may occur
A.    After a specified duration
B.    At a specified time
C.    On a recurring basis
D.    All of the above
E.    None of the above
10.    The J2EE 1.4 platform includes a set of Web services technologies for developing Web services applications. Developers can use the following technologies to write a Web service Java interface or service endpoint interface:
A.    Java API for XML Processing (JAX-P) and Java API for XML Binding (JAX-B)
B.    SOAP with Attachments API for Java (SAAJ)
C.    Java API for XML-based RPC (JAX-RPC) and enterprise bean components
D.    Java API for XML Registries (JAX-R)
11.    To develop a Java interface for a Web service-the service endpoint interface-you must start with the WSDL (Web Services Description Language) document for the service.
A.    True
B.    False
12.    Which type of enterprise bean is particularly well suited for developing a JAX-RPC service endpoint interface for a Web service?
A.    A messaged-driven bean
B.    An entity bean
C.    A stateless session bean
D.    A Timer object
E.    A stateful session bean
13.    When developing an enterprise bean as a JAX-RPC service endpoint interface for a Web service, you must adhere to the following rule:
A.    The bean must not extend java.rmi.Remote nor should its methods throw java.rmi.RemoteException
B.    The bean's methods must use remote reference types
C.    Deploy the bean using a special Web services deployment descriptor, webservices.xml.
D.    None of the above.
14.    Enterprise beans can be used to access Web services. To do so, the bean must:
A.    Declare a service-ref element in its deployment descriptor that contains appropriate information to look up the Web service endpoint.
B.    Package the Web service endpoint into an ejb-jar file.
C.    Create a webservices.xml file containing the Web service.
D.    Include a JAX-RPC handler in its code.
15.    For a new Web service developed using enterprise beans, you must package its components into an ejb-jar file. Which of the following are not packaged into the ejb-jar file:
A.    All classes referenced from the bean class and the interface
B.    The WSDL file
C.    The deployment descriptor for the Web service
D.    The stubs, skeletons, and serialization/deserialization code for translating SOAP requests to invocations on the bean class.

. A local home or component interface for an EJB can only be used by:
A.    Another EJB
B.    A web-tier client
C.    A business logic-tier client
D.    A client located in the same JavaTM Virtual Machine (JVM)1

2. Local interfaces have declarative:
A.    Transactions and security
B.    Transactions only
C.    Security only
D.    Neither, for performance reasons
3. An entity in a unidirectional relationship that is the target of a role with a cmr field:
A.    Must have local home and component interfaces
B.    Must have remote home and compnent interfaces
C.    May have either local or remote interfaces, but not both
D.    May have any combination of local or remote interfaces
4. An entity in a unidirectional relationship that is the source of a role with a cmr field:
A.    Must have local home and component interfaces
B.    Must have remote home and compnent interfaces
C.    May have either local or remote interfaces, but not both
D.    May have any combination of local or remote interfaces
5. The bean class for an entity that uses the EJB 2.0 model of container-managed persistence:
A.    Must implement java.io.Serializable
B.    Is only used for better integration with popular IDEs
C.    Must be abstract
D.    Must not be abstract
6. The legal collection class type(s) to represent a many-valued relationship are:
A.    java.util.Collection only
B.    java.util.Collection and java.util.Set
C.    java.util.List, java.util.Set, and java.util.Map
D.    java.util.Map only
7. If you call a "set" abstract accessor for a cmr field, it can:
A.    Throw a java.sql.SQLException
B.    Automatically cascade delete an entity
C.    Automatically change the value of cmr fields in up to three additional beans
D.    You can never call an abstract accessor
8. You can only specify cascade-delete on a relationship role if:
A.    The role has a multiplicity of 'One'
B.    The other role in the relationship has a multiplicity of 'One'
C.    The role has a multiplicity of 'Many'
D.    The other role in the relationship does not already use cascade-delete
9. If an entity has a relationship to another entity, it must:
A.    Declare that entity reference in the deployment descriptor using the <ejb-ref> element
B.    Declare that entity reference in the deployment descriptor using the <ejb-local-ref> element
C.    Declare that entity reference in the deployment descriptor using the <ejb-link> element
D.    No entity reference declaration is required
10. The bean developer must be cautious when iterating over a relationship collection class, because:
A.    Concurrent transactions can modify the values
B.    Changes to its contents can violate foreign key constraints in the database
C.    Changes to its contents can trigger a referential integrity change to the collection class itself
D.    The container developer is not required to support the Iterator class's next method
11. The EJB 2.0 specification introduces ejbSelect methods. These are:
A.    Abstract methods in the bean class that call a query
B.    The local home interface equivalent of a finder method
C.    Methods in the component interface that call a query
D.    A method that allows the bean developer to choose between a local and remote interface
12. The new EJB Query Language (EJB-QL) has three clauses: select, from, and where. Of these:
A.    Only the from clause is mandatory
B.    Only the select and from clauses are mandatory
C.    Only the where clause is mandatory.
D.    All clauses are mandatory.
13. In EJB-QL, date and time literals are represented by:
A.    A string in the format MM-DD-YYYY HH:MM:SS +MILLISECONDS
B.    A string in a locale-determined format
C.    A string in a vendor specific format
D.    A long value that represents a millisecond count, such as 979837813000
14. The type of interface (local or remote) returned from an ejbSelect statement can be:
A.    Specified in the query
B.    Specified in the deployment descriptor
C.    Specified by the client
D.    Is always a local interface
15. The functions available for use in the where clause of an EJB-QL query are:
A.    All functions defined in standard SQL
B.    All functions defined by the target database
C.    All functions with defined escapes in JDBC 2.0
D.    A limited subset of the functions defined for JDBC 2.0

1. What does the EJB specification architecture define?
A.     Transactional components
B.     Distributed object components
C.     Server-side components
D.     All of the above
2. What executes EJB components?
A.     A web server
B.     An application server
C.     An EJB container
D.     A database server
3. What do enterprise beans use to communicate with the EJB container to get runtime context information?
A.     The javax.ejb.EJBContext provided by the container
B.     A JNDI ENC context
C.     A javax.ejb.EJBHome object provided by the container
D.     A javax.ejb.EJBMetaData object provided by the container
4. Through what interface does an application create, find, and remove enterprise beans?
A.     java.rmi.Remote
B.     javax.ejb.EJBHome
C.     javax.ejb.EJBObject
D.     javax.ejb.EntityBean
5. What type of enterprise bean is used to embody business objects?
A.     javax.ejb.EnterpriseBean
B.     java.rmi.Remote
C.     javax.ejb.SessionBean
D.     javax.ejb.EntityBean
6. What type of enterprise bean is used to embody application processing state information?
A.     javax.ejb.EnterpriseBean
B.     javax.rmi.Remote
C.     javax.ejb.SessionBean
D.     javax.ejb.EntityBean
7. What interface must the enterprise bean implement so that an application can invoke its operations?
A.     javax.ejb.EntityBean
B.     javax.ejb.EJBHome
C.     javax.ejb.EJBObject
D.     javax.rmi.Remote
8. At what point, precisely, in the life-cycle is a container-managed entity bean considered created?
A.     Immediately prior to the execution of its ejbCreate() method
B.     Immediately after the execution of its ejbCreate() method
C.     After the CMP bean's data has been committed to the underlying persistent datastore
D.     During the execution of its ejbPostCreate() method
9. What distinguishes a bean-managed persistent (BMP) enterprise bean from a container-managed persistent (CMP) enterprise bean?
A.     A BMP bean must implement the ejbLoad() and ejbStore() methods
B.     A BMP bean can implement persistence to custom datastores such as legacy systems
C.     A BMP bean is responsible for managing its own persistence to a persistent datastore
D.     All of the above
10. What is a deployment descriptor?
A.     An XML file format used by the container to learn about the attributes of a bean, such as transactional characteristics and access control
B.     A method for transporting enterprise beans back and forth between systems
C.     An XML file used by enterprise bean clients to learn about the attributes of a bean, such as access control and transactional characteristics.
D.     A format for bundling enterprise beans for delivery to customers

1. What do you have to do to make an instance variable into a JavaBean property?
A.    Declare the instance variable public and static.
B.    Define a get method and a set method for the variable.
C.    Drop the Bean into the BeanBox property sheet.
D.    Declare the instance variable private and let the BeanBox define get and set methods for the variable.


2. An application builder tool can analyze how JavaBeans work. Which mechanism does the tool use?
A.    Persistence
B.    Method customization
C.    Introspection
D.    Event delegation


3. Properties control what aspects of a JavaBean?
A.    The communication between JavaBeans.
B.    A JavaBean's appearance and behavior.
C.    How a JavaBean is compiled and dropped into the BeanBox (or other tool).
D.    The tools you can use to customize a JavaBean.


4. JavaBean methods are all
A.    Events
B.    Properties
C.    Event listeners
D.    Identical to methods of other Java classes


5. A source Bean is a JavaBean that fires an event, while the Bean that receives the event is called a
A.    Listener Bean
B.    Receiver Bean
C.    Enterprise JavaBean
D.    EventHandler Bean


6. JavaBeans and widgets are both considered to be reusable software components. However, JavaBeans differ from widgets because Beans
A.    Can be reused more rapidly than widgets.
B.    Define a design-time interface that tools can query.
C.    Take up less storage space that widgets.
D.    Can be run by more tools on more platforms than widgets.


7. The BeanBox is a JavaBean testing tool that comes with the Bean Developer's Kit. The BeanBox has the following windows:
A.    ToolBox, BeanBox, and Properties windows.
B.    ToolBox, BeanBox, and Garage windows.
C.    BeanBox, ToolBox, and Windows98 windows.
D.    Properties and ToolBox windows.


8. JavaBeans communicate with each other using events, such as action events. You establish the connection between Beans by:
A.    Writing a special adapter class.
B.    Using the BeanBox Edit -> Events menu and resulting dialog box to hook up one Bean to another.
C.    Having the BeanBox generate the special adapter class.
D.    Any of the above choices.


9. You use the Property sheet in the BeanBox tool to
A.    Add new properties to a Bean.
B.    Delete a Bean's property.
C.    Change the value of a Bean's property.
D.    All of the above.


10. The properties of a Bean
A.    May be inherited by the Bean from its superclass.
B.    Are defined by the Bean itself.
C.    Are analogous to instance variables.
D.    All of the above.
E.    None of the above.


11. Some JavaBeans are not meant to be visible and are referred to as invisible Beans. Such invisible Beans
A.    Have no GUI representation.
B.    Are able to fire events and save persistent state.
C.    Are invisible in builder tools.
D.    All of the above.
E.    A and B only.


12. A property defined in a JavaBean typically
A.    Is declared as a private type.
B.    Has a corresponding get method and set method.
C.    Can be saved and retrieved at a later time.
D.    All of the above.
E.    None of the above.


13. When you write the code for a new JavaBean, you can test it in the BeanBox. What do you have to do to be able to test the Bean in the BeanBox?
A.    Compile the Bean.
B.    Create a manifest file for the Bean.
C.    Create an executable JAR file for the Bean class and manifest file.
D.    Load the JAR file into the BeanBox using the LoadJar menu option, or place the JAR file in the default directory from which the BeanBox initializes and loads its Beans.
E.    All of the above.


14. When you write a get method for a JavaBean property, form the method name as follows:
A.    Use any name you want for the get method.
B.    Use only the property name for the get method.
C.    Use get followed by the property name, with the first letter of the property name capitalized.
D.    None of the above.


15. A manifest file for a JavaBean contains the following information:
A.    The name of the JavaBean's class file.
B.    An indicator that this is a JavaBean.
C.    A list of the properties declared by the JavaBean.
D.    A and B.
E.    A, B, and C.


16. Which kinds of properties can a Bean contain?
A.    Complex properties and Event-handling properties
B.    Constrained properties, Simple properties, Bound properties
C.    All of the above


17. A JavaBean that defines bound properties typically calls what methods so that other Beans can be notified of changes to the bound property?
A.    The addPropertyChangeListener method so a Bean can register an interest in notification of changes to the property.
B.    The reportChange method to send property change notification to interested Beans.
C.    The firePropertyChange method to send property change notification to interested Beans.
D.    The addActionListener method so a Bean can register an interest in notification of changes to the property.
E.    A and C
F.    D only
G.    All of the above


18. Bound properties appear in the BeanBox with what kind of event in the Edit -> Events menu?
A.    actionPerformed event
B.    propertyChange event
C.    mouse pressed event
D.    mouse moved event


19. Constrained properties are
A.    Identical to bound properties except that they are only used on certain platforms.
B.    Identical to bound properties except that the listener Bean can veto the property change.
C.    Identical to bound properties except that they are indexed.
D.    None of the above.


20. JavaBeans with constrained properties
A.    Instantiate a PropertyChangeSupport object.
B.    Use methods of the VetoableChangeSupport class.
C.    Instantiate an ActionListener object.
D.    A and B
E.    None of the above
F.    All of the above

1.    What scripting language can you use in the Java SE 6 platform?
A.    Groovy
B.    JavaScript
C.    Ruby
D.    Python
E.    All of the above



2.    What is the normalization of Unicode text?
A.    The process of removing every third character from a String object
B.    Proper punctuation
C.    The process of converting Unicode text data to common, well-known formats for comparisons, searches, and other text processing
D.    Removal of offensive words
E.    All of the above



3.    How do you launch your host's default browser to view a specific URL?
A.    Display a dialog box that asks the user to start the browser.
B.    Use the new Desktop API to programmatically launch default desktop applications for certain file types.
C.    You cannot do this from Java technology-based applications.
D.    Double-click on your browser's desktop icon and cross your fingers.
E.    None of the above.


4.    How can I sort JTable content?
A.    Export your table content and use OpenOffice to sort your table as a spreadsheet.
B.    You must sort content before you put it into your TableModel.
C.    Use the sortItForMe() method of the JTable class.
D.    Use a TableRowSorter, which provides sorting and filtering of your existing TableModel.
E.    None of the above.



5.    What is the correct annotation to use to export a method as a web service operation using Java API for XML Web Services (JAX-WS), version 2.0?
A.    @WebService
B.    @WebMethod
C.    @WSMethod
D.    @WSService
E.    @SQL</CODE< td>



6.    In JDK 6, the JMX Monitor API now uses a thread pool to increase performance. What is the purpose of the JMX Monitor API?
A.    It allows the creation of user-defined MXBeans.
B.    It supplies additional metadata about the MBean.
C.    It controls how the MBean is displayed on your monitor.
D.    It allows an application to sample MBean properties and send notification if necessary.
E.    All of the above.



7.    JDK 6 incorporates an advanced version of the SwingWorker class into core Java technology. What is the purpose of the SwingWorker class?
A.    It helps to move graphical user interface (GUI) event-processing functionality off the event-dispatching thread.
B.    It coordinates interthread communication between an executing thread and the worker thread.
C.    It aggregates several type parameters generated by the worker thread into a single, generic return object.
D.    All of the above.
E.    None of the above.



8.    What is the best Java platform to use with the upcoming release of the Microsoft Windows Vista operating system?
A.    Java SE 6
B.    J2SE 5.0
C.    J2SE 1.4
D.    J2SE 1.3
E.    J2SE 1.2



9.    In the Java SE 6 platform, what key tuning option(s) are needed to achieve high performance?
A.    -Xms -Xmx
B.    -server -XX:+UseParallelGC
C.    -XX:+AggressiveOpts
D.    None of the above
E.    All of the above



10.    The Java SE 6 platform delivers a technology that can greatly improve performance by reducing unnecessary synchronization overhead. It allows a thread to lock and unlock an object with minimal use of atomic operations. What is this technology called?
A.    Adaptive spinning
B.    Biased locking
C.    Parallel OLD GC
D.    Atomic fast path
E.    None of the above
顶端 Posted: 2009-04-27 14:31 | [1 楼]
Manson



年度之星奖
性别: 帅哥 状态: 该用户目前不在线
头衔: 低调滴超然
等级: 成就辉煌
发贴: 11319
威望: 1
浮云: 3
在线等级:
注册时间: 2004-12-03
最后登陆: 2022-09-14

5come5帮你背单词 [ monument /'monjumənt/ n. 纪念物,纪念碑,纪念馆,遗迹 ]


不懂~ 
顶端 Posted: 2009-04-27 14:31 | [2 楼]
freezing



资源小王子奖 爱心大使勋章 爱心大使勋章
性别: 帅哥 状态: 该用户目前不在线
头衔: 抱抱
等级: 管理员
家族: 坛猪弹劾组
发贴: 14467
威望: 10
浮云: 9244
在线等级:
注册时间: 2005-09-21
最后登陆: 2022-02-08

5come5帮你背单词 [ pen /pen/ n. 钢笔 ]


捣乱
顶端 Posted: 2009-04-27 14:32 | [3 楼]
real_eye



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 559
威望: 0
浮云: 1130
在线等级:
注册时间: 2006-03-18
最后登陆: 2011-05-16

5come5帮你背单词 [ rise /raiz/ vi. 上升,上涨,升起,站起,起床,增强,起义;n. 增加,升高,加薪,高地,高坡 ]


1.    What group makes decisions on which functionality will be present in the final release of Java SE 6?
A.    JSR 145
B.    JSR 270
C.    JSR 10
D.    Top corporate executives and politicians in a smoke-filled room


2.    Sun's implementation of Java SE 6 introduces which of the following new features:
A.    An embedded Mozilla Rhino JavaScript interpreter
B.    New system-tray functionality
C.    New splash-page functionality
D.    All of the above



3.    What important addition to the JTabbedPane was added in Java SE 6?
A.    The ability to add a tooltip to the tab
B.    The ability to add an icon to the tab
C.    The ability to substitute a Component as a tab's identifier
D.    The ability to add and remove tabs



4.    With Java SE 6, what functionality can you now perform with java.io.File?
A.    Set permissions and check free and usable disk space.
B.    Check whether a file is marked as hidden.
C.    Check whether a file is in fact a directory and determine its parent directory.
D.    Nothing was added to java.io.File.



5.    JSR 105 calls for support for XML encryption and digital signatures in Java SE 6. In what package can you find this functionality?
A.    java.xml.security
B.    javax.xml.crypto
C.    java.security
D.    javax.xml.validation

6.    What new functionality was added to JTable in Java SE 6?
A.    The ability to resize columns in a JTable
B.    The ability to move columns in a JTable
C.    The ability to define custom cell table views
D.    The ability to sort and filter data in a JTable

7.    Java SE 6 now incorporates an advanced version of SwingWorker into the core. What is the purpose of SwingWorker?
A.    It helps to move lengthy GUI-interacting tasks into a dedicated thread, so as not to block the event-dispatch thread.
B.    It coordinates interthread communication between an executing thread and the event-dispatch thread.
C.    It can aggregate several intermediate parameters generated by the worker thread into a single, generic "return" object.
D.    All of the above.



8.    What new functionality does the JTextComponent class include?
A.    Additional printing support, including headers, footers, and layout
B.    Bidirectional text
C.    Embedded scrolling
D.    HTML support


9.    What additional calendar does Java SE 6 now support?
A.    Thai Buddhist
B.    Islamic lunar
C.    Mayan
D.    Japanese imperial

10.    What is the purpose of the new java.text.Normalizer class?
A.    It provides a spell-checking service provider interface.
B.    It sorts text quickly and efficiently.
C.    It transforms text into an equivalent composed or decomposed form.
D.    It provides online, real-time language translation.


11.    JSR 221 is defining the Java DataBase Connectivity (JDBC) 4.0 software specification. Which of the following are significant additions in JDBC 4.0 software, which will be included in Java SE 6?
A.    SQL:2003 XML support
B.    National character-set support
C.    Large object (LOB) enhancements
D.    All of the above

12.    Java SE 6 includes a new modality model for dialog boxes. What previous JDK issue(s) does this address?
A.    The user was unable to access a modal dialog box if its parent window was displayed above it.
B.    JavaHelp windows could sometimes be inadvertently affected by modal dialog boxes.
C.    There was only one blocking strategy for AWT and JFC/Swing modal dialog boxes.
D.    All of the above.

1.    The following code injects EntityManager instances into an application-scoped JavaServer Faces technology-based managed bean. Why is this not a good approach to persisting data?
2.         public class BookBean {
3.               @PersistenceContext EntityManager em;
4.           ...
5.               public String placeOrder() {
6.           ...
7.                   em.persist(order);
8.           ...
9.               }
10.         }

A.    The approach is not thread safe.
B.    The approach does not persist data.
C.    The approach cannot be used with container-managed persistence.
D.    You can't inject EntityManager instances into an application-scoped JavaServer Faces technology-based managed bean.

Fill in the blank: Java API for XML-Based Web Services (JAX-WS) 2.0 defines two types of handlers, protocol handlers and ____________.
A.    Envelope handlers
B.    Context handlers
C.    Logical handlers
D.    Error handlers

11.    Java Architecture for XML Binding (JAXB) 2.0 includes a number of important improvements to JAXB 1.0. Which of the following is a feature that was already supported in JAXB 1.0?
A.    Smaller runtime libraries
B.    Support for all W3C XML Schema features
C.    Additional validation capabilities through the JAXP 1.3 validation APIs
D.    Support for structural unmarshaling



12.    What is the purpose of the java.awt.SystemTray and java.awt.TrayIcon classes in Java Platform, Standard Edition 6 (Java SE 6)?
A.    These classes give you the ability to add graphics, pop-up menus, and floating tip functionality to the system tray.
B.    They give you the ability to add items to the Start menu or the equivalent.
C.    They allow you to start default desktop applications, such as email and browsers.
D.    Nothing. They do not exist.


13.    What is the correct annotation to use to export a class as a web service operation using JAX-WS 2.0?
A.    @WebService
B.    @WebMethod
C.    @WSMethod
D.    @WSService

14.    What is the difference between the methods getFreeSpace() and getUsableSpace() in the java.io.File class?
A.    There is no difference between these methods.
B.    The getFreeSpace() method is deprecated. Programmers are now encouraged to use getUsableSpace().
C.    The getUsableSpace() method is deprecated. Programmers are now encouraged to use getFreeSpace().
D.    The getUsableSpace() method typically returns a more accurate number of unallocated bytes.

15.    What important addition did the Java SE 6 platform make to the JTabbedPane class?
A.    The ability to add a tooltip to the tab
B.    The ability to add an icon to the tab
C.    The ability to substitute a Component as a tab's identifier
D.    The ability to add and remove tabs

16.    How do you determine the number of characters in a String?
A.    Use String's length() method.
B.    Convert the String to a byte[] and use the arrays length property.
C.    Use String's codePointCount method.
D.    None of the above.

17.    How can you make sure your applications handle the U.S. Daylight Savings Time (DST) changes that take effect in 2007?
A.    Set your local host clock back to 2006.
B.    Ignore the time changes.
C.    Download an updated Java Runtime Environment (JRE), or use the Tzupdater tool.
D.    Write your congressman.

18.    What new layout manager in the Java SE 6 platform helps you create great-looking GUIs with NetBeans IDE 5.5?
A.    GridBagLayout
B.    GroupLayout
C.    FlowLayout
D.    BorderLayout

1.    Struts was first developed
A.    in an online exchange between several open source developers
B.    over a long holiday weekend
C.    as a commercial package
2.    The reset method on an ActionForm
A.    Sets all properties to their initial value
B.    Sets all properties to null
C.    Repopulates all properties from the request parameters
D.    None of the above
3.    Each Struts Action element is uniquely identified by its
A.    Input attribute
B.    Name attribute
C.    Page attribute
D.    Path attribute
4.    The name of the Application Resources file is set by the servlet init-param named
A.    application
B.    resources
C.    ApplicationResources
D.    messages
5.    The validating init-param of the ActionServlet is used to
A.    Bypass calls to the ActionForm validate method
B.    Bypass validation of the Struts configuration file
C.    Generate an error message if an unknown message key is used
6.    To specify an ActionMapping to use when a request doesn't match any other mapping, you can
A.    Use an asterisk for the path property
B.    Set the "default" property of the mapping to "true"
C.    Set the "unknown" property of the mapping to "true"
D.    Set the "missing" init-param of the ActionServlet to the mapping's path
7.    If you have created a custom ActionMapping subclass with the property "service", you can initialize the value to "selectRecord" using
A.    <init-property name="service" value="selectRecord"/>
B.    <set-property property="service" value="selectRecord"/>
C.    <put-field key="service" content="selectRecord"/>
8.    In Struts 1.1, you can change how Struts populates a form by
A.    Overriding the populate method of the ActionForm
B.    Overriding the processPopulate method of the Request Processor
C.    Overriding the populateBean method of the ActionMapping
9.    The <bean:write> tag is:
A.    Always converts HTML markup to entity equivalents, like <
B.    Never converts HTML markup to entity equivalents
C.    Converts markup when filter=true
D.    Converts markup when markup=false
10.    To prevent possible security issues with the <html:password> tag, you should
A.    Call the reset method if validation fails
B.    Set the tag's redisplay property to false
C.    Set the tag's reset property to false
D.    Use a plain html tag instead
11.    To localize Tiles, you can
A.    Create separate configuration files for each locale
B.    Specify an locale for a definition
C.    Either A or B
12.    To localize Validator forms, you can
A.    Create separate configuration files for each locale
B.    Specify a locale for a form-set
C.    Either A or B
13.    From a MVC perspective, Struts provides the
A.    Model
B.    View
C.    Controller

1.    When setting a property "src.dir" to the name of a directory "source", should you use:
A.    <property name="src.dir" value="source" >
B.    <property name="src.dir" location="source" >
C.    Either works: it doesn't make any difference
2.    What dependency checking does the <javac> task do?
A.    none
B.    it recompiles all .java files that need rebuilding
C.    it recompiles all .java files whose .class file is missing or older than the .java source file
3.    What happens when you overwrite a property? What is the message that gets printed from the following snippet
4.    <property name="javac.debug" value="true"/>
5.    <property name="javac.debug" value="false"/>
6.    <echo message="debug flag is ${javac.debug}"/>

A.    debug flag is true
B.    debug flag is false
C.    debug flag is ${javac.debug}
7.    What is a valid path for specifiying files on a Unix system?
A.    "lib/junit.jar:lib/httpunit.jar"
B.    "lib\junit.jar;lib\httpunit.jar"
C.    either of the above
8.    What gets printed in this conditional target?


<property name="someproperty" value="false" />

<target name="conditional" if="someproperty">
    <echo message="hello" />
</target>


A.    hello
B.    nothing
9.    How do you wait for deployment to complete before you start tests?
A.    <sleep>
B.    use <waitfor>
C.    have two build files, poll by hand and start the second test
10.    The <java> task can run a Java program in Ant's own JVM, or in a forked JVM. Should you run your code with fork="true" or fork="false"
A.    fork="false" for the speed gain
B.    fork="true" for the isolation
C.    it makes no difference
11.    True or false: by default, the <junit> task fails the build when a test fails.
A.    True
B.    False
12.    XDoclet is:
A.    A Java metadata templating engine
B.    A deployment descriptor generator
C.    A replacement for javadoc
D.    A & B
E.    A, B, & C
13.    What is Cactus?
A.    A performance testing JUnit extension
B.    An in-container testing framework
C.    A competitor to JUnit
14.    Writing a custom Ant task requires:
A.    Extending from org.apache.tools.ant.Task
B.    Commit access to Ant's CVS repository
C.    Updating a properties file within ant.jar
D.    None of the above
15.    Ant can be extended in several ways. In what way can Ant (version 1.5) not be extended?
A.    Custom mapper
B.    Custom FilterReader
C.    Custom <condition>
D.    Custom selector
16.    Overriding an Ant property from the command-line is done with this syntax:
A.    property name=value
B.    -override name=value
C.    -Dname=value
D.    You cannot override Ant properties from the command-line

1.    Instance variables maintain. . .
A.     one copy of the variable for each class instance
B.     a separate value for the state information for each class instance.
C.     A constant state of the variable for each class instance.
D.     None of the above.

2.    The following piece of code includes a class variable and an instance method:

        public class Counter {
        int count;
        void incrementCount() {
          count++;
        }
        int getCount() {
        return count;
          }
        }
       

A.     True
B.     False

3.    To create a class level constant, use the following two keywords together:
A.     public and constant.
B.     final and constant
C.     final and static


4.    Call static methods
A.     with the class identifier.
B.     with a new instance of the class.
C.     None of the above.


5.    What results would print from the following code snippet:
6.           System.out.println("12345 ".valueOf(54321));
       
A.    The application won't compile.
B.    12345 54321
c.    54321




1.    Which of the following ways will not load a JDBC driver?
A.     Configure the list of drivers in the jdbc.driver system property
B.     Call the driver's constructor
C.     Pass the class name to the forName method of Class
D.     Use JNDI to locate the Driver


2.    What does JDBC stand for?
A.     Java Database Connectivity
B.     JDBC is not an acronym

3.    In a non-JNDI environment, through which class does one acquire a connection to a specific data source?
A.     Driver
B.     DriverManager
C.     Connection
D.     DatabaseMetaData
E.     Context

4.    In a JNDI environment, through which class does one acquire a connection to a specific data source?
A.     Driver
B.     DriverManager
C.     Connection
D.     DatabaseMetaData
E.     DataSource

5.    Which way of loading the database driver can create two instances of the class?
A.     Specify the driver or set of drivers to use by setting the jdbc.drivers system property.
B.     Pass the class name as a String to the forName method of Class.
c.    Create an instance of the class.
1.    If the following code block was within an appropriate try/catch block, would it compile without error?
2.    FileInputStream fis = new FileInputStream("inputfile");
3.    ObjectInputStream ois = new ObjectInputStream(fis);
4.    Point p = ois.readObject();
A.     True
B.     False
5.   


6.    Which method(s) must a serializable class implement?
A.     It must always implement both readObject and writeObject
B.     It must implement either readObject or writeObject, or both, depending upon the desired behavior
C.     No methods
7.   


8.    What is the most complete set of exceptions that can be thrown when reading a serialized object?
A.     IOException
B.     ClassNotFoundException, SerialziableException
C.     SerialziableException
D.     ClassNotFoundException, InvalidClassException, StreamCorruptedException, OptionalDataException, and IOException
E.     IOException, SerializableException
9.   


10.    What is the most complete set of exceptions that can be thrown when serializing an object?
A.     IOException
B.     ClassNotFoundException, NotSerializableException
C.     NotSerializableException
D.     ClassNotFoundException, InvalidClassException, NotSerializableException, OptionalDataException, and IOException
E.     InvalidClassException, IOException, NotSerializableException
11.   


12.    Given that you have an object with references to several data members, and those data members share multiple references to themselves, what must be done when you serialize the object, such that when you deserialize the object, all the original references are restored?
A.     Mark any data member with multiple references to be transient
B.     Call the checkForMultipleReferences method of ObjectOutputStream before serializing the class
C.    Nothing, handling of multiple and circular references are automatic
D.    You cannot save and restore an object with multiple references to the same object

1.    In the following class definition, which variables are inaccessible within the method of the inner class?

class Test1 {
  public static int a = 1;
  private static int b = 2;
  public int c = 3;
  private int d = 4;
  public static class Inner {
    int e = 5;
    public void aMethod(int f) {
      int g = 6;
      // What can't be accessed here?
    }
  }
}


A.     b, c, d
B.     c, d
C.     b, c, d, f
D.     None of them



2.    In the following class definition, which variables are inaccessible within the method of the inner class?
class Test2 {
  public static int a = 1;
  private static int b = 2;
  public int c = 3;
  private int d = 4;
  public class Inner {
    int e = 5;
    public void aMethod(int f) {
      int g = 6;
      // What can't be accessed here?
    }
  }
}


A.     b, c, d
B.     c, d
C.     c, d, f
D.     b, c, d, f
E.     None of them



3.    In the following class definition, which variables are inaccessible within the method of the inner class?
class Test3 {
  public static int a = 1;
  private static int b = 2;
  public int c = 3;
  private int d = 4;
  public void aMethod(int e) {
    int f = 5;
    class Inner {
      int g = 6;
      public void anotherMethod(int h) {
      // What can?t be accessed here?
      }
    }
  }
}


A.     c, d
B.     e, f
C.     c, d, e, f
D.     e, f, g
E.     None of them.



4.    What's wrong with the following code?
class Test4 {
  public static void main(String args[]) {
    MouseListener listener = new MouseAdapter() {
      static int count;
      public void mouseEntered(MouseEvent e) {
        processIt(e);
      }
      private void processIt(MouseEvent f) {
        System.out.println("Got: " + f);
        System.out.println("Count: " + ++count);
      }
    };
  }
}


A.     Anonymous inner classes can only implement interfaces.
B.     Inner classes can't have support methods.
C.     All the methods of MouseListener aren't implemented.
D.     Inner classes can't have static declarations.
E.     Nothing is wrong. The code compiles fine.



5.    Where were inner classes introduced into the Java programming language syntax?
A.     1.0
B.     1.1
C.    1.2
D.    1.3
E.    1.4
1.    When creating JavaBean components, what access modifier should be used for remembering the state information for a property?
A.     private
B.     protected
C.     none (default access)
D.     public
2.   
3.    When creating JavaBean components, what access modifier should be used for the setter and getter methods of a property?
A.     private
B.     protected
C.     none (default access)
D.     public
4.   
5.    When creating a JavaBean component, what name should be used for the getter method for a boolean property named visible?
A.     getVisible
B.     getvisible
C.     isVisible
D.     isvisible
6.   
7.    Which class must all JavaBean components subclass?
A.     java.beans.JavaBean
B.     java.beans.BeanComponent
C.     java.awt.Component
D.     java.lang.Object
8.   
9.    Which interface must all JavaBean components implement?
A.     java.io.Serializable
B.     java.io.Externalizable
C.     java.beans.Bean
D.     Nothing
1.    If you add an Integer to a Properties object via the put method of Hashtable as both the key and value [props.put(anInteger, anInteger)], what happens when you try to store the Properties set to a FileOutputStream?
A.     The code won't compile
B.     The toString method of Integer is called to write both the key and value as a String.
C.     A ClassCastException is thrown because the key is not a String
D.     A ClassCastException is thrown because the value is not a String
2.   
3.    Which interface does Hashtable not implement?
A.     Cloneable
B.     Comparable
C.     Map
D.     Serializable
4.   
5.    Which of the following would sort all the elements in a Properties set, including the defaults?
A.     Create a new TreeMap, passing in the source Properties object to its constructor.
B.     Create a new TreeMap and to the map each key reported by propertyNames and its associated value.
C.     Call the toArray method of Properties and then call Arrays.sort on the result.
D.     Call the sort method of Collections to sort the whole Map (Properties object).
6.   
7.    Of which of the following is Properties not a descendent class?
A.     Object
B.     Dictionary
C.     HashMap
D.     Hashtable
8.   
9.    What options are available for working with property files that require character encoding in other than the default character set?
A.     Pass the encoding name to the load method of Properties.
B.     Pass the encoding name to the InputStreamReader constructor and then pass that Reader on to the load method of Properties.
C.     Pass the encoding name to the constructor call of the Properties object.
D.     Use the native2ascii tool to convert property files to other character encoding.

1. What is the purpose of a JavaServer Page (JSP)?
Provides an entry point for web site
Allows you to create dynamic web pages
Creates a JavaBean
2. What type of software do I need to test and run JSP pages?
Just the J2SE download
My favorite text editor
Sun's Java Studio Creator, TomCat, or some other server software
3. Can I use JavaBeans with my JSP pages?
Only when a Swing interface is created
The JSP specification includes standard tags for bean use and manipulation
Absolutely not

1.    The Logging API supports having one handler registered with a Logger at a time.
A.     True
B.     False
2.   
3.    Which of the following can not be passed into the log method of logger to log a message?
A.     String
B.     String[]
C.     Exception
D.     int
4.   
5.    Which of the following statements is false about the capabilities of the Logging API when logging to a file (via FileHandler)?
A.     You can cycle through a fixed number of files when the log reaches a certain size limit
B.     You can append to an existing log file if the filename pattern matches
C.     You can cycle through a fixed number of files when the log reaches an infinite size limit
D.     You can overwrite an existing log file if the filename pattern matches
6.   
7.    Internationalizing log messages involves you localizing the log message before sending it to the logger.
A.     True
B.     False
8.   
9.    Which of the following levels are not placed from highest to lowest level?
A.     Severe, Warning, Config, Info
B.     Warning, Config, Fine, Finer
C.     Severe, Config, Fine, All
D.     Off, Severe, Warning, Info

1. When creating your own class, and you want to make it directly support sorting, which interface must it implement?
    A.     Comparable
    B.     Comparator
    C.     Sortable
    D.     Sortator



2. When creating using a third party class that isn't directly sortable, which interface must you implement to sort instances of class?
    A.     Comparable
    B.     Comparator
    C.     Sortable
    D.     Sortator



3. Class A is a subclass of class B. What would happen if you try to sort an array of mixed elements of type A and B?
    A    They would sort based on the sorting method found in class A
    B    They would sort based on the sorting method found in class B
    C    Sorting would just leave the original array unsorted with no exceptions thrown
    D    Sorting would yield a ClassCastException as the classes are incompatible.



4. True or false. When implementing the compareTo(Object first, Object second) method to support sorting, returning -1 means the first object comes sequentially before the second object.
    A.     True
    B.     False



5. True or false. If two equal objects are in an array and that array is sorted, the equal elements may change their order.
    A.     True
    B.     False
1. Entity Beans are used . . .
    A.     to process asynchronous messages
    B.     to model persistent data objects
    C.     to model processes, services, and client-side sessions



2. JavaServer Pages (JSP) Custom Tags must have a body.
    A      True
    B      False



3. You can create XML pages using JSP techology.
    A    True
    B    False



4. A new feature inside J2SE 1.4 is:
    A.     The pop up and pop up factory classes, previously packaged private, are now made public in Swing.
    B.     JNI has been enhanced to reflect a new feature of the java.nio package called direct buffers.
  C.     The security feature: Java GSS-API can be used for securely exchanging messages between communicating applications using the Kerberos V5 mechanism.
    D.     All of the above.



5. JAXR is an important Java API within the Web Service Development Pack because:
    A.     It acts as the layer between provider and the registry, thus creating a secure buffer zone.
    B.     With it, you can access standard registries such as those that conform to UDDI or ebXML, and it is designed to support other future registry standards.
    C.     It is an XML-based protocol for exchanging information in a distributed environment.



6. JAXB stands for:
    A.    Java API for XML Beans
    B.     Java API for XML Binding
    C.     Java Architecture for XML Binding
    D.     All of the above.



7. JavaServer Faces technology
    A.     Is distinguished from JATO and Struts as it focuses on providing a component model for the user-interface
    B.     Replaces Struts and JATO web application frameworks as it encapsulates the user-interface more at the form or page level.
    C.     Is a component to Struts and JATO web application frameworks



8. Connected Limited Device Configuration (CLDC) is for:
    A.     For using with the Foundation Profile as a Java 2 platform, Micro Edition(J2ME) profile specification
    B.     Devices with an always-on network connection and a minimum of 2 MB of memory available for the Java system.
    C.     Devices with less than 512 KB of RAM available for the Java system and an intermittent (limited) network connection.



9. The Java Card API:
  A.     Defines the calling conventions by which an applet accesses the Java Card Runtime Environment and native services.
    B.     Has an XML binding component
  C.     Is within the JavaServer Pages custom tag library for expressing a Java Card interface



10. Java 2 Platform Micro Edition (J2ME), Wireless Toolkit:
    A.     Supports application development from start to finish: from Java source files to MIDlet Suite including jar and jad files, ready for deployment.
    B.     Offers two different GUI-based development interfaces, as well as command line support.
    C.     Enables source level debugging support when integrated with Forte for Java
    D.     All of the above
    E.     None of the above
1. Which of the following is not a valid comment in the Java programming language?
A.     int x; // a comment
B.     /*
A comment
*/
int x;
C.     /**
A comment
*/
int x;
D.     <!--
A comment
-->
int x;


2. What is the nature of data typing in the Java programming language?
A.     Strongly typed
B.     Weakly typed
C.     Untyped


3. What is the value of seasons.length for the following array?

String[] seasons = {"winter", "spring", "summer", "fall", };
A.     undefined
B.     3
C.     4
D.     5


4. When you use the new keyword to create an object, where is it created?
A.     Heap
B.     Garbage collector
C.     Queue
D.     Stack


5. Which of the following loop constructs must execute their loop body at least once?
A.     while (<boolean-expression>)
  <statements>...
B.     do
  <statements>...
while (<boolean-expression>);
C.     for (<init-stmts>...; <boolean-expression>; <exprs>...)
  <statements>...


6. An overridden method can be in the same class.
A.     True
B.     False


7. Which of the following datatypes consumes the most bits to represent its range of values?
A.     boolean
B.     float
C.    long
D.    char


8. How do you force the garbage collector to run?
A.     Call System.gc()
B.     Call Runtime.gc()
C.     Either A or B
D.     There is nothing you can do


9. When multiple methods exist within the same class with different method signatures, this is known as what?
A.     Method overloading
B.     Overriding methods
C.     Message passing
D.     A headache


10. What's printed when the following program is executed:
class PrintMe {
  public void do(int character) {
    System.out.println(character+character);
  }
  public static void main (String args[]) {
    new PrintMe().do('A');
  }
}


A.     AA
B.     130 (The ASCII value of A is 65)
C.     Does not compile

1. When a JSP page is compiled, what is it turned into?
A.     Applet
B.     Servlet
C.     Application
D.     Mailet
2. Which of the following is not a standard method called as part of the JSP life cycle?
A.     jspInit()
B.     jspService()
C.     _jspService()
D.     jspDestroy()
3. If you want to override a JSP file's initialization method, within what type of tags must you declare the method?
A.     <@ @>
B.     <%@ %>
C.     <% %>
D.     <%! %>
4. Which of the following can not be used as the scope when using a JavaBean with JSP?
A.     application
B.     session
C.     request
D.     response
E.     page
5. The implicit JSP objects like request, response, and out are only visible in the _jspService() method.
A.     True
B.     False
6. What is the key difference between using a <jsp:forward> and HttpServletResponse.sendRedirect()?
A.     forward executes on the client while sendRedirect() executes on the server.
B.     forward executes on the server while sendRedirect() executes on the client.
C.     The two methods perform identically.
7. Which of the following statements makes your compiled JSP page implement the SingleThreadModel interface?
A.     <%@ page isThreadSafe="false" %>
B.     <%@ page isThreadSafe="true" %>
8. Of the following four valid comment styles that can be used within JSP pages, which can the end user see?
A.     <%--
  My comments
  <% out.println("Hello World"); %>
--%>
B.     <!-- (c)2000 jGuru.com -->
C.    <% // For Loop
  for (int i=1; i<=4; i++) {
%>
  <H<%=i%>>Hello</H<%=i%>>
<% } %>
D.    <% /** yet another comment */
  JavaDoc Rules
%>
9. How can a servlet call a JSP error page?
A.     This capability is not supported.
B.     When the servlet throws the exception, it will automatically be caught by the calling JSP page.
C.     The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException".
D.     The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie.
10. When using a JavaBean to get all the parameters from a form, what must the property be set to (??? in the following code) for automatic initialization?
<jsp:useBean id="fBean" class="govi.FormBean" scope="request"/>
<jsp:setProperty name="fBean" property="???" />
<jsp:forward page="/servlet/JSP2Servlet" />
A.     *
B.     all
C.     @
D.     =
顶端 Posted: 2009-04-27 14:32 | [4 楼]
姐夫你放手



性别: 帅哥 状态: 该用户目前不在线
等级: 希望之光
发贴: 1526
威望: 0
浮云: 1279
在线等级:
注册时间: 2009-04-17
最后登陆: 2011-12-14

5come5帮你背单词 [ transparent /træns'p/ərənt/ a. 透明的,透光的,易理解的,显然的,明显的 ]


啥子情况
顶端 Posted: 2009-04-27 14:32 | [5 楼]
real_eye



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 559
威望: 0
浮云: 1130
在线等级:
注册时间: 2006-03-18
最后登陆: 2011-05-16

5come5帮你背单词 [ landlord /'lændlo:d/ n. 地主,房东 ]


1. If you need to use a stored procedure with output parameters, which of the following statement type should be used to call the procedure?
A.    Statement
B.    PreparedStatement
C.    CallableStatement


2. Which of the following will not cause a JDBC driver to be loaded and registered with the DriverManager?
A.    Class.forName(driverString);
B.    new DriverClass();
C.    Include driver name in jdbc.drivers system property
D.    None of the above


3. From which object do you ask for DatabaseMetaData?
A.    Connection
B.    ResultSet
C.    DriverManager
D.    Driver


4. SQLWarnings from multiple Statement method calls (like executeUpdate) will build up until you ask for them all with getWarnings and getNextWarning.
A.    True
B.    False


5. If one intends to work with a ResultSet, which of these PreparedStatement methods will not work?
A.    execute()
B.    executeQuery()
C.    executeUpdate()


6. Can a ResultSet be reliably returned from a method that creates a Statement and executes a query?
A.    Yes
B.    No


7. How can I use JDBC to create a database?
A.    Include create=true at end of JDBC URL
B.    Execute "CREATE DATABASE jGuru" SQL statement
C.    Execute "STRSQL" and "CREATE COLLECTION jGuru" SQL statements
D.    Database creation is DBMS specific


8. Which character is used to represent an input parameter in a CallableStatement?
A.    %
B.    *
C.    ?
D.    #


9. Which one of the following will not get the data from the first column of ResultSet rs, returned from executing the following SQL statement: SELECT name, rank, serialNo FROM employee.
A.    rs.getString(0);
B.    rs.getString("name");
C.    rs.getString(1);


10. Which of the following can you do with a JDBC 2.0 database driver that you cannot with a JDBC 1.x driver?
A.    Batch multiple statements, to be sent to the database together
B.    Scroll through result sets bi-directionally
C.    Work with SQL3 data types directly
D.    All of the above


11. Which class contains the transaction control methods setAutoCommit, commit, and rollback?
A.    Connection
B.    Statement
C.    ResultSet
1. What interface must all interfaces for remote services extend?
A.    java.rmi.RemoteService
B.    java.rmi.Remotable
C.    java.rmi.server.Remote
D.    java.rmi.Remote
2. When defining a remote interface, what exception is typically thrown as part of each method signature?
A.    IOException
B.    RemoteException
C.    RemoteCollisionException
D.    RemoteControlException
3. From which of the following locations can an RMI server NOT load classes?
A.    The CLASSPATH of an RMI client
B.    The CLASSPATH of the RMI server
C.    From an HTTP or FTP server on the network at a location specified by the client
D.    From an HTTP or FTP server on the network at a location specified by the server
4. How are remote object parameters transferred between client and server?
A.    A proprietary protocol that is determined by the vendor of the RMI implementation
B.    Standard Java Serialization
C.    Internet Inter-ORB Protocol (IIOP)
D.    Java Remote Method Protocol (JRMP)
5. Which of the following is no longer true for the RMI implementation that comes with the Java 2 platform?
A.    Services must extend the Remote interface
B.    The skeleton file must be present for the server
C.    The server must be running before its services can be used
D.    All of the above are no longer true
6. How can a client prepare itself for callbacks from the RMI server?
A.    Extend java.rmi.server.UnicastRemoteObject
B.    Call UnicastRemoteObject.exportObject()
C.    Either of the above will work
D.    Neither of the above will work
7. To help with distributed garbage collection, how can a remote object be notified when there are no longer any clients holding a reference?
A.    There is no way to be notified
B.    By implementing the Unreferenced interface
C.    By implementing the Deferenced interface
D.    By implementing the ExpiredLease interface
8. What is the name for the remote object proxy that is used by the client?
A.    Skeleton
B.    RemoteRef
C.    MarshaledObject
D.    Stub
9. Which of the following tools is used to generate the stubs and skeletons for a remote service?
A.    javac
B.    rmic
C.    java
D.    rmiregistry
10. Which of the following would not locate the remote "Calculator" service on machine www.jguru.com (with an IP address is 216.217.9.172), where the standard RMI registry was used?
A.    Naming.lookup("rmi://www.jguru.com/Calculator");
B.    Naming.lookup("rmi://216.217.9.172/Calculator");
C.    Naming.lookup("rmi://www.jguru.com:1199/Calculator") ;
D.    Naming.lookup("www.jguru.com:1099/Calculator");
1.    What of following features can _not_ be configured in the JSF configuration file?
A.    Navigation rules
B.    Managed beans
C.    Custom components
D.    Application name



2.    Which tag must enclose all other tags on a Faces JSP page?
A.    <f:faces>
B.    <f:view>
C.    <h:jsf>
D.    <h:view>


3.    Which JSF component can be used to create tables?
A.    HtmlPanelGroup
B.    HtmlTable
C.    UITable
D.    HtmlPanelGrid


4.    How do you declare a text label for an input control?
A.    Use the HtmlOutputLabel component
B.    Use the HtmlOutputLabel component with a child HtmlOutputText component
C.    Use the HtmlOutputText component
D.    Use the OutputLabel component



5.    What type of events does the HtmlCommandButton generate?
A.    Command events
B.    Submit events
C.    Action events
D.    Click events

6.    Why does the HtmlForm component render a <hidden> field?
A.    To keep track of its identifier
B.    To keep track of the components in tree
C.    To set its submitted property
D.    For JavaScript integration


7.    Which JSF expression references an application's context path?
A.    #{contextPath}
B.    #{requestContextPath}
C.    #{facesContext.externalContext.requestContextPath}
D.    ${request.contextPath}


8.    How do you integrate JSF components with custom JavaScript?
A.    Write a new renderer
B.    Through faces-config.xml
C.    With HTML pass-through attributes
D.    No specific integration is necessary


9.    How do you integrate JSF components with cascading style sheets (CSS)?
A.    With the JSF configuration file
B.    With the styleClass property
C.    With the cssClass property
D.    With the class property

10.    How do you customize validation messages with JSF?
A.    Create a resource bundle with specific keys and specify its name in faces-config.xml
B.    Create a resource bundle with specific keys
C.    Create a properties file with custom keys and specify its name in web.xml
D.    Specify the custom messages in faces-config.xml

1. Choose the statement that best describes the relationship between JSP and servlets:
A.    Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage.
B.    JSP and servlets are unrelated technologies.
C.    Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination.
D.    JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage.



2. What is a benefit of using JavaBeans to separate business logic from presentation markup within the JSP environment?
A.    It allows the JSP to access middleware.
B.    It creates a cleaner role separation between the web-production team and the software development team, so that the web-production team can focus on presentation markup, while the software team can focus on building reusable software components for helping to generate dynamic displays.
C.    It provides a dynamic markup environment, such that JavaBeans are integrated seamlessly with the template presentation content, in order to create the dynamic display for the client.
D.    It provides the developer with full access to the Java 2 Platform Enterprise Edition (J2EE), which is unavailable from outside the JavaBean environment.



3. Why use RequestDispatcher to forward a request to another resource, instead of using a sendRedirect?
A.    Redirects are no longer supported in the current servlet API.
B.    Redirects are not a cross-platform portable mechanism.
C.    The RequestDispatcher does not use the reflection API.
D.    The RequestDispatcher does not require a round trip to the client, and thus is more efficient and allows the server to maintain request state.



4. What alternatives exist to embedding Java code directly within the HTML markup of your JSP page?
A.    Moving the code into your session manager.
B.    Moving the code into scriptlets.
C.    Moving the code into JavaBeans and servlets.
D.    Moving the code into a transaction manager.



5. What type of scriptlet code is better-suited to being factored forward into a servlet?
A.    Code that deals with logic that is common across requests.
B.    Code that deals with logic that is vendor specific.
C.    Code that deals with logic that relates to database access.
D.    Code that deals with logic that relates to client scope.



6. Choose the statement that best describes how to connect JSP pages and Enterprise JavaBeans (EJBs):
A.    Lookup the EJBs from within a JSP, but use the EJBs from within a basic JavaBean.
B.    Lookup and use the EJBs from a separate business delegate. The JavaBeans that work with JSP pages are clients to these business delegates and know nothing about EJB specifics.
C.    Lookup and use the EJBs from within a JSP page, but only as remote references.
D.    Lookup the EJBs from within a servlet, delegating usage to specific JSP pages.



7. Are custom tags available in JSP 1.0? If not, how else might you implement iteration from within a JSP?
A.    Yes, but the only tags available relate to database access.
B.    No. To iterate over a collection of values, one must use scriptlet code.
C.    No, but there is a standard <iterate> tag that may be used.
D.    Yes, but custom tags will not help developers create tags for use in iterating over a collection.



8. What is the initial contact point for handling a web request in a Page-Centric architecture?
A.    A JSP page.
B.    A JavaBean.
C.    A servlet.
D.    A session manager.



9. What is the difference between doing an include or a forward with a RequestDispatcher?
A.    The forward method transfers control to the designated resource, while the include method invokes the designated resource, substitutes its output dynamically in the display, and returns control to the calling page.
B.    The two methods provide the same functionality, but with different levels of persistence.
C.    The forward method is deprecated as of JSP 1.1 and the include method should be used in order to substitute portions of a dynamic display at runtime.
D.    The include method transfers control to a dynamic resource, while the forward method allows for dynamic substitution of another JPS pages output, returning control to the calling resource.



10. What line of code below might be combined in the same JSP page with a validation guard (for example, <% bean.validationGuard(); %> ), in order to create an alternate flow of control for scenarios in which exceptions arise. The validationGaurd method might throw an exception, which should cause the flow of control to continue in another user-defined page (assume JSP 1.0).
A.    <jsp:error page="errorPage.jsp" guard="true" />
B.    <%@ page language="java" buffer="8k" %>
C.    <jsp:useBean id="bean" class="examples.Bean" scope="request" />
D.    <%@ page language="java" errorPage="errorPage.jsp" buffer="8k" %>
1. If you need to use a stored procedure with output parameters, which of the following statement type should be used to call the procedure?
A.    Statement
B.    PreparedStatement
C.    CallableStatement


2. Which of the following will not cause a JDBC driver to be loaded and registered with the DriverManager?
A.    Class.forName(driverString);
B.    new DriverClass();
C.    Include driver name in jdbc.drivers system property
D.    None of the above


3. From which object do you ask for DatabaseMetaData?
A.    Connection
B.    ResultSet
C.    DriverManager
D.    Driver


4. SQLWarnings from multiple Statement method calls (like executeUpdate) will build up until you ask for them all with getWarnings and getNextWarning.
A.    True
B.    False


5. If one intends to work with a ResultSet, which of these PreparedStatement methods will not work?
A.    execute()
B.    executeQuery()
C.    executeUpdate()


6. Can a ResultSet be reliably returned from a method that creates a Statement and executes a query?
A.    Yes
B.    No


7. How can I use JDBC to create a database?
A.    Include create=true at end of JDBC URL
B.    Execute "CREATE DATABASE jGuru" SQL statement
C.    Execute "STRSQL" and "CREATE COLLECTION jGuru" SQL statements
D.    Database creation is DBMS specific


8. Which character is used to represent an input parameter in a CallableStatement?
A.    %
B.    *
C.    ?
D.    #


9. Which one of the following will not get the data from the first column of ResultSet rs, returned from executing the following SQL statement: SELECT name, rank, serialNo FROM employee.
A.    rs.getString(0);
B.    rs.getString("name");
C.    rs.getString(1);


10. Which of the following can you do with a JDBC 2.0 database driver that you cannot with a JDBC 1.x driver?
A.    Batch multiple statements, to be sent to the database together
B.    Scroll through result sets bi-directionally
C.    Work with SQL3 data types directly
D.    All of the above


11. Which class contains the transaction control methods setAutoCommit, commit, and rollback?
A.    Connection
B.    Statement
C.    ResultSet
1. A session bean does not survive server crashes.
A.    True
B.    False


2. What happens during data marshaling?
A.    The remote server object is created and its data echoed back to the client.
B.    RMI APIs are called on the thin client, the data is serialized, and sent to the remote server object.
C.    Methods that are called on a remote server object are wrapped with their data and sent to the remote server object, where they are unwrapped and executed.
D.    Data is serialized and stored in the database, where it can be reached by the remote server for processing the object as needed.


3. If you want a bean to manage its own transactions, you have to configure the Enterprise JavaBeans server with which kind of settings?
A.    JDBC service type, isolation level, commit mode
B.    Transaction attribute, commit mode, isolation level
C.    Transaction type, commit mode, RMI service type
D.    Isolation level, transaction attribute, transaction type


4. When would you use an Interoperable Object Reference (IOR)?
A.    As a backup protocol for data marshaling.
B.    When a naming service is not compatible among all Object Request Brokers (ORBs).
C.    To bind the remote server object to an ORB.
D.    When a naming service is not compatible across remote method invocations.


5. What is the RMI-IIOP API used for?
A.    To look up an object written in something other than the Java programming language.
B.    To create a two-stage lookup.
C.    To plug lookup services from various providers into a program written in the Java programming language.
D.    To transmit Interoperable Object References (IORs) between RMI clients.


6. How does RMI prevent potential memory leaks from client references to remote objects when the clients have aborted or the network connection has dropped?
A.    The remote server object sets an expiration time on all exported objects, and when the time reaches -1, theJava virtual machine1 sets the remote object for garbage collection if it cannot locate the client.
B.    The virtual machine sets an expiration time on all exported object, and when the time reaches -1, the remote object is set for garbage collection.
C.    The remote server object's container continually checks for references, and when a remote object has no more references, it is set for garbage collection.
D.    The Java virtual machine sets an expiration time on all exported objects, and when the time reaches 0, the remote object is set for garbage collection.


7. What kind of exception is raised if you try to map a java.lang.String to a fixed size or bounded IDL string?
A.    MARSHAL exception
B.    DATA_CONVERSION exception
C.    RMI exception
D.    CORBA exception


8. CORBA does not have a distributed garbage collection mechanism.
A.    True
B.    False


9. When you use the Java Native Interface (JNI) to retrieve a reference to an array residing in your program, what does the Java virtual machine do to prevent the array from being moved by the garbage collector when it compacts heap memory?
A.    Marshals the reference.
B.    Serializes and stores the array data.
C.    Pins the array into memory.
D.    Uses a weak reference to deny the garbage collector access to the array.


10. In JNI, how do you make an object persist across native method calls?
A.    By calling NewInstanceVariable on the local reference.
B.    By calling NewGlobalPersist on the local reference.
C.    By calling NewInstanceGlobal on the local reference.
D.    By calling NewGlobalReference on the local reference.
1.    At what stage of the software development process should you worry about performance?
A.    Analysis
B.    Design
C.    Coding
D.    Testing
E.    All of the above


2.    Which tool is most useful for optimizing the speed of your code?
A.    Source-level debugger
B.    Profiler
C.    Disassembler
D.    Optimizing source code to bytecode compiler


3.    Which of the following technologies depend on the "Serialization" mechanism?
A.    Jini technology
B.    JavaSpaces technology
C.    RMI
D.    All of the above
E.    None of the above

4.    Which Java language keyword is most important for tuning serialization performance?
A.    final
B.    private
C.    transient
D.    synchronized


5.    What is the key difference between the java.util.Vector and java.util.ArrayList classes?
A.    Vector requires less memory.
B.    ArrayList implements the Collection interface.
C.    Vector is heavily synchronized, while ArrayList is not.
D.    All of the above.

6.    What guarantees does the Java Virtual Machine1 Specification make regarding objects that provide a finalize method?
A.    These objects are given priority during garbage collection.
B.    The finalize method is called before the object is collected.
C.    The finalize method is called after the object is collected
D.    The object is collected directly after the finalize method is called.


7.    In Project Swing you can create your own Renderer objects. These can be used to enhance display, as well as improve performance. When creating a custom TableCellRenderer, what must you be sure to do?
A.    Always return a new Component from the getTableCellRendererComponent method.
B.    Always return a Component that is an instance of JComponent.
C.    Recycle objects returned from the getTableCellRendererComponent method.
D.    None of the above.



8.    Swing programs should be single threaded.
A.    True
B.    False


9.    Java archives (aka JAR files) can be used to improve the download speed of your applets. What types of files can be stored in JAR archives?
A.    XML files
B.    Graphics files
C.    Class files
D.    B and C
E.    All of the above


10.    What does the -server flag in J2SE 1.3 do?
A.    Tells HotSpot to create small thread stacks to allow for higher numbers of threads.
B.    Tells HotSpot to use its most advanced code generation techniques to achieve maximum performance.
C.    Tells the java.net. package to use asynchronous socket connections.
D.    All of the above.
E.    None of the above.
顶端 Posted: 2009-04-27 14:33 | [6 楼]
Manson



年度之星奖
性别: 帅哥 状态: 该用户目前不在线
头衔: 低调滴超然
等级: 成就辉煌
发贴: 11319
威望: 1
浮云: 3
在线等级:
注册时间: 2004-12-03
最后登陆: 2022-09-14

5come5帮你背单词 [ gracious /'greiəs/ n. 亲切的,和蔼的,有礼貌的 ]


LZ  偶眼睛痛   
顶端 Posted: 2009-04-27 14:34 | [7 楼]
calitrean



年度之星奖
性别: 帅哥 状态: 该用户目前不在线
头衔: WCDMA民工Q某 
等级: 成就辉煌
家族: 单身贵族
发贴: 11025
威望: 0
浮云: 2296
在线等级:
注册时间: 2007-01-16
最后登陆: 2023-11-19

5come5帮你背单词 [ cabbage /'kæbid3ə/ n. 卷心菜,甘蓝 ]


JAVA仔 
顶端 Posted: 2009-04-27 14:34 | [8 楼]
miss.然



自信之戒 年度之星奖
性别: 美女 状态: 该用户目前不在线
头衔: 这是一段忧郁的时光。
等级: 优秀会员
家族: 死死团
发贴: 5821
威望: 0
浮云: 1785
在线等级:
注册时间: 2009-04-22
最后登陆: 2019-05-07

5come5帮你背单词 [ fantastical // a. 奇异的,怪诞的,异想天开的(fantastical=fantastic) ]


what's this?
顶端 Posted: 2009-04-27 14:36 | [9 楼]
real_eye



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 559
威望: 0
浮云: 1130
在线等级:
注册时间: 2006-03-18
最后登陆: 2011-05-16

5come5帮你背单词 [ route /ru:t/ n. 路线,路程 ]


考试专用 题库~  我需要放个地方~  我就放这里来了~~
顶端 Posted: 2009-04-27 14:37 | [10 楼]
calitrean



年度之星奖
性别: 帅哥 状态: 该用户目前不在线
头衔: WCDMA民工Q某 
等级: 成就辉煌
家族: 单身贵族
发贴: 11025
威望: 0
浮云: 2296
在线等级:
注册时间: 2007-01-16
最后登陆: 2023-11-19

5come5帮你背单词 [ sentiment /'sentimənt/ n. 伤感,感情,情绪 ]


Quote:
引用第9楼miss.然于2009-04-27 14:36发表的  :
what's this?

貌似是JAVA
顶端 Posted: 2009-04-27 14:37 | [11 楼]
calitrean



年度之星奖
性别: 帅哥 状态: 该用户目前不在线
头衔: WCDMA民工Q某 
等级: 成就辉煌
家族: 单身贵族
发贴: 11025
威望: 0
浮云: 2296
在线等级:
注册时间: 2007-01-16
最后登陆: 2023-11-19

5come5帮你背单词 [ expansion /iks'pænən/ n. 伸展,扩张,膨胀 ]


Quote:
引用第9楼miss.然于2009-04-27 14:36发表的  :
what's this?

学着点吧,做GIS也会用JAVA的
顶端 Posted: 2009-04-27 14:38 | [12 楼]
real_eye



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 559
威望: 0
浮云: 1130
在线等级:
注册时间: 2006-03-18
最后登陆: 2011-05-16

5come5帮你背单词 [ motive /'məutiv/ n. 动机,目的,(作品的)主题 ]


让大家受惊了...... 不要恐慌~  为了考试而已~
顶端 Posted: 2009-04-27 14:48 | [13 楼]
南子



性别: 帅哥 状态: 该用户目前不在线
头衔: 你有《时间简史》吗?
等级: 荣誉会员
发贴: 23993
威望: 2
浮云: 481
在线等级:
注册时间: 2003-07-15
最后登陆: 2014-04-07

5come5帮你背单词 [ television /'telivi3ən/ n. (缩)tv,电视(机) ]


发帖当目击证人。
顶端 Posted: 2009-04-27 14:51 | [14 楼]
« 1 2» Pages: ( 1/2 total )
我来我网·5come5 Forum » 灌水乐园 大杂烩

Total 0.010453(s) query 5, Time now is:11-26 13:34, Gzip enabled
Powered by PHPWind v5.3, Localized by 5come5 Tech Team, 黔ICP备16009856号