Tag: java

Questions Related to java

  1. Sequential

  2. Selection -- if and switch statements

  3. Iteration -- for loop, while loop and do-while loop

  4. none of the above


Correct Option: A
  1. A browser that uses a plug-in to process user data.

  2. A distributed application where the client program does not process datA. but instead passes data for processing to an enterprise bean running on an application server.

  3. An application that cannot be stopped by a firewall.

  4. An application compiled with the -thin option of the javac command


Correct Option: B
  1. Special icons for creating the user interface elements for thin clients.

  2. A data module saved to the component area of the database.

  3. A self-contained functional software unit that is assembled into a J2EE application and interfaces with other application components

  4. A JAR file


Correct Option: C

What advantage does an entity bean have over a session bean?

  1. Entity bean data survives crashes.

  2. An entity bean represents non-persistent data.

  3. It creates its own JAR file during deployment.

  4. You get authentication code without having to write any.


Correct Option: A

When do you use a session bean?

  1. When you want to be certain your application data persists between program invocations, even in the event of a crash.

  2. If you need to initiate a database transaction.

  3. To process transient data that can be re-created in the event of a crash.

  4. To keep people who do not know how to program from accidentally changing important logic code


Correct Option: C
  1. To make the user interface more interesting.

  2. To simplify application deployment.

  3. To prevent malicious programs from gaining access to sensitive information on your database server.

  4. To make the application much easier to update, maintain, and manage.


Correct Option: D
  1. XML imposes important limitations on the receiving program or tool.

  2. The receiving program or tool can use the XML tagging information to determine how to best handle the incoming data.

  3. XML tags offer an extra level of security

  4. XML tags specify to the receiving program or tool exactly how to format and display the data.


Correct Option: B
  1. The thin client.

  2. Deployment descriptors.

  3. The JAR file.

  4. The bean's container


Correct Option: D