0

Java Web Services

Description: Developing web service using java Java BasicsJava/Oracle /C/C++JavaChemistry
Number of Questions: 15
Created by:
Tags: Developing web service using java Java Basics Java/Oracle /C/C++ Java Chemistry
Attempted 0/15 Correct 0 Score 0

Which of the following provides the basic skeleton and plumbing, which means that you focus on the layout and look of each room?

  1. Java swing

  2. Java applet

  3. Java struts

  4. 2D API

  5. Datagram Packet class


Correct Option: C
Explanation:

It provides the basic skeleton and plumbing that means you focus on the layout and look of each room.

In which of the following object activation models is only one object active in the server?

  1. Unshared server

  2. Persistent server

  3. Shared server

  4. OrbixWeb

  5. Object life cycle


Correct Option: A
Explanation:

Here, only one object is active in the server.

Which of the following implements a local object, which forwards all requests to the remote objects?

  1. StockHelper.java

  2. StockHolder.java

  3. javax.swing.text.rtf

  4. _StockStub.java

  5. Stock


Correct Option: D
Explanation:

It implements a local object, which forwards all requests to the remote object.

Which of the following can be used in order to dynamically update the totals on your shopping cart, without forcing the user to click update, and wait for the server to resend the entire page?

  1. Java applet

  2. Ajax

  3. Java swing

  4. JSlider

  5. InetAddress class


Correct Option: B
Explanation:

By using Ajax, you can dynamically update the totals on your shopping cart, without forcing the user to click update, and wait for the server to resend the entire page.

Which of the following must not be used to perform updates because it breaks the HTTP specification?

  1. POST

  2. init()

  3. GET

  4. contains header(java.lang.String.name)

  5. 1xx


Correct Option: C
Explanation:

This method must not be used to perform updates as this breaks the HTTP specification.

In which of the following classes can the child components be displayed one tab at a time over multiple tabs?

  1. JTextPane

  2. JScrollPane

  3. JSlider

  4. StackFrame class

  5. JTabbedPane


Correct Option: E
Explanation:

Here, the child components can be displayed one tab at a time over multiple tabs.

Which of the following CORBA services decouples the communication between distributed objects?

  1. StackFrame class

  2. Websphere

  3. Object life cycle

  4. Transaction

  5. Event


Correct Option: E
Explanation:

This CORBA service decouples the communication between distributed objects.

Which of the following HttpServletRequest methods returns an empty enumeration object, if the request did not include any headers of the specified name?

  1. getHeaderNames()

  2. addHeader(java.lang.String name,java.lang.String value)

  3. containsHeader(java.lang.String name)

  4. getHeaders(java.lang.String name)

  5. destroy()


Correct Option: D
Explanation:

If the request did not include any headers of the specified name, this method returns an empty enumeration object.

Which of the following CORBA services provides a locking service for CORBA objects in order to ensure serializable access?

  1. Object life cycle

  2. Events

  3. OrbixWeb

  4. Portable object adapter

  5. Concurrency control


Correct Option: E
Explanation:

It provides a locking service for CORBA objects in order to ensure serializable access.

Which of the following is/are most popularly used for generating dynamic content on the web and have native support for HTTP?

  1. Java applet

  2. Java servlets

  3. Java swing

  4. JScrollPane

  5. ContentHandler class


Correct Option: B
Explanation:

These are most popularly used for generating dynamic content on the web and have native support for HTTP.

If the request does not have a header of the specified name, which of the following HttpServletRequest methods returns - 1?

  1. getHeaderNames()

  2. getHeader(java.lang.String name)

  3. getIntHeader(java.lang.String name)

  4. containsHeader(java.lang.String name)

  5. service()


Correct Option: C
Explanation:

If the request does not have a header of the specified name, this method returns -1.

Which of the following is a distributed object in the GUI that presents the stock data to the user for a particular stock?

  1. StockPresentation

  2. Stock

  3. Alarm

  4. Object life cycle

  5. StockHolder.java


Correct Option: A
Explanation:

A distributed object in the GUI that presents the stock data to the user for a particular stock.

Which of the following browsers has a version of VisiBroker embedded in them?

  1. WebSphere

  2. Event

  3. Java 2 ORB

  4. Lynx browser

  5. Netscape communicator browser


Correct Option: E
Explanation:

It has a version of VisiBroker embedded in them.

Which of the following CORBA services supports the finding of CORBA objects based on properties describing the service offered by the object?

  1. Trader

  2. Event

  3. Object life cycle

  4. Java 2 ORB

  5. Stock


Correct Option: A
Explanation:

It supports the finding of CORBA objects based on properties describing the service offered by the object.

In which of the following object activation models does each request result in the creation of a server?

  1. Shared server

  2. Persistent server

  3. Server per method

  4. Websphere

  5. Portable object adapter


Correct Option: C
Explanation:

Here, each request results in the creation of server.

- Hide questions