Tag: architecture

Questions Related to architecture

  1. To validate if the XML is well formed.

  2. To pretty print the XML.

  3. To include HTML in an XML Document without getting parsed.

  4. It provides a qualified name for an XML element or attribute.


Correct Option: C
  1. Add Security to SOAP.

  2. To validate if the XML is well formed.

  3. To Avoid Element Name Collisions.

  4. None of the above.


Correct Option: C
  1. java.lang.Annotation.

  2. javax.xml.rpc.handler.Handler.

  3. java.util.Map

  4. java.lang.Runnable.


Correct Option: A
  1. The capability of an object to exist after the program that created it has stopped running.

  2. The ability of a class to support multiple threads.

  3. An Error-Handling technique.

  4. None of the above.


Correct Option: A
  1. Use the setXXX() method defined for the wrapper class.

  2. Use the parseXXX() method defined for the wrapper class.

  3. Use the equals() method defined for the wrapper class.

  4. The value encapsulated by a wrapper class is immutable.


Correct Option: D
  1. Call System.gc()

  2. Garbage collection cannot be forced.

  3. Call System.gc(), passing in a reference to the object to be garbage-collected.

  4. Call Runtime.gc()


Correct Option: B