Top XML Interview Questions

Interview Questions Categories
Core Java | J2EE | Database | Struts | XML | HTTP | Web Services

I have prepared this list for those of you seeking to appear in Java / J2EE interview at various companies globally. This post contains a list of popular XML questions normally asked during interview. These are prepared from most frequently asked questions from various software industries. I myself have interviewed over 100 candidates. I have intentionally not provided the solution here. But if you are desperate for one, send me an email via Contact Us link. For other interview questions such as those for J2EE, Core Java, Database etc and for some sample programming implementations intended to help you to prepare for the interview of tech giants like Google / Microsoft / Amazon, go to my page here.

  1. What is XML?
  2. What is the difference between XML and HTML
  3. What are some of the benefits of XML?
  4. How do you parse and XML?
  5. What is a DOM Parsing?
  6. What is a SAX Parsing?
  7. When do you use a DOM Parsing vs a SAX Parsing?
  8. What makes an XML Well formed?
    • A well-formed document in XML is a document that adheres to the syntax rules specified by the XML 1.0 specification in that it must satisfy both physical and logical structures
  9. What is XML Schema Definition (XSD)?
  10. What is an XML Schema?
  11. What are some differences between DTDs and Schemas?
  12. What is a simple element?
  13. What is a complex element?
  14. What are namespaces?
    • XML Namespace is a mechanism to avoid name conflicts by differentiating elements or attributes within an XML document that may have identical names, but different definitions.
  15. Why are namespaces important?
  16. What are two different ways you can use namespaces?
  17. What is CDATA section in XML?
    • The term CDATA means, Character Data. CDATA are defined as blocks of text that are not parsed by the parser, but are otherwise recognized as markup. The predefined entities such as <, >, and & require typing and are generally difficult to read in the markup. In such cases, CDATA section can be used.
  18. Describe a logical structure of XML?
  19. Why is XML Extensible?

J2EE Interview Questions

Interview Questions Categories
Core Java | J2EE | Database | Struts | XML | HTTP | Web Services

I have prepared this list for those of you seeking to appear in Java / J2EE interview at various companies globally. This post contains a list of core java questions. These are prepared from most frequently asked questions from various software industries. I myself have interviewed over 100 candidates. I have intentionally not provided the solution here. But if you are desperate for one, send me an email via Contact Us link. For other interview questions such as those for J2EE, XML, Database etc and for some sample programming implementations intended to help you to prepare for the interview of tech giants like Google  / Microsoft / Amazon, go to my page here.

The questions below are alphabetically sorted.

  1. Are JavaBeans J2EE components?
  2. How do we package J2EE components?
  3. How is the MVC design pattern used in Struts framework?
  4. How to access web.xml parameters from jsp pages?
  5. Is HTML page a web component?
  6. Is J2EE application only a web-based?
  7. Is Servlet a pure java object?
  8. What are container services?
  9. What are JSP Directives?
  10. What are JSP Tags?
  11. What are servlets?
  12. What are the advantages of hibernate?
  13. What are the benefits of ORM?
  14. What are the four components of J2EE applications?
  15. What are the limitations of hibernate?
  16. What are types of J2EE clients?
  17. What can be considered as a web component?
  18. What do Enterprise JavaBeans components contain?
  19. What is a thin client?
  20. What is Applet container?
  21. What is deployment descriptor?
  22. What is Enterprise JavaBeans (EJB) container?
  23. What is Hibernate
  24. What is J2EE Connector?
  25. What is J2EE?
  26. What is JAAP?
  27. What is Java Naming and Directory Service?
  28. What is JAXP?
  29. What is JDNI?
  30. What is JSF?
  31. What is JTA and JTS?
  32. What is ORM?
  33. What is Struts?
  34. What is the container?
  35. What is the difference between war, jar and ear files?
  36. What is the EAR file?
  37. What is the web container?
  38. What is web.xml?
  39. What makes J2EE suitable for distributed multitiered Applications?
  40. What are types of J2EE Clients?

Webservice Interview Questions

The followings are some commonly asked interview questions related to Web Services. These questions are alphabetically sorted. For other interview questions on other technical topics, go to my page here.

  1. Define SOAP?
  2. Explain the web service architecture?
  3. How do you generate web service client from WSDL files?
  4. How do you test a web service?
  5. Name few standards used in web services.
  6. What are some WSDL operations?
  7. What are the common components of web service?
  8. What is a bottom up approach?
  9. What is a provider and a consumer?
  10. What is a response caching?
  11. What is a top down approach?
  12. What is a web service protocol stack?
  13. What is a web service?
  14. What is an end point?
  15. What is REST protocol?
  16. What is SOAP-UI?
  17. What is UDDI?
  18. What is WSDL?
  19. What is XML RPC?
  20. What kinds of tools can you use for creating RESTful Web Services?
  21. Why would you choose REST instead of SOAP?