Interview Questions and Answers for 'Parser' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2349 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Parser' - 4 question(s) found - Order By Newest

  Q1. Difference between SAX and DOM Parser ?Xml
Admin
info@buggybread.com
Ans. A DOM (Document Object Model) parser creates a tree structure in memory from an input document whereas A SAX (Simple API for XML) parser does not create any internal structure.

A SAX parser serves the client application always only with pieces of the document at any given time whereas A DOM parser always serves the client application with the entire document no matter how much is actually needed by the client.

A SAX parser, however, is much more space efficient in case of a big input document whereas DOM parser is rich in functionality.

Use a DOM Parser if you need to refer to different document areas before giving back the information. Use SAX is you just need unrelated nuclear information from different areas.

Xerces, Crimson are SAX Parsers whereas XercesDOM, SunDOM, OracleDOM are DOM parsers.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     java   xml   parsers   sax   dom parser   difference   architecture   technical lead   technical architect  markup language      First Advantage  Wellington Management  Chase Reference Data Distribution  System Soft Technologies  TD Bank Canada  JPMorgan Chase  Tata Consultancy (TCS)  PayPal  Citibank  Free Doctor Helpline  Wells Fargo  Huawei Technologies   HealthFirst        frequent

Try 1 Question(s) Test


Related Questions

  What is marshalling ?
  What is unmarshalling ?
 Given a String with some Code, Write a Parser to have proper indentation.


 Q2. What is marshalling ?Xml
Anonymous
Ans. Its the process of creating XML structures out of Java Objects which is used to traverse information across the network.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     xml   java api for xml   marshalling   parser   sax   dom   technologies     IBM


Related Questions

  What is unmarshalling ?


 Q3. What is unmarshalling ?
Anonymous
Ans. Its the process of creating Java Objects out of XML structures.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     xml   java api for xml   unmarshalling   parser   sax   dom   architecture     Intel Securities


Related Questions

  Difference between SAX and DOM Parser ?
  In what order the elements of a HashSet are retrieved ?
  What is marshalling ?
  If you have access to a function that returns a random integer from one to five, write another function which returns a random integer from one to seven.
  Which of the following is fastest to locate the DOM element ?
 In this url

http://javasearch.buggybread.com/InterviewQuestions/questionSearch.php?searchOption=label&keyword=url

What is protocol , domain , path and query param ?
 Can you name some of the Java frameworks in different domains ?
 What is the difference between RollingFile and RollingRandomAccessFile in log4j ?


 Q4. Which of following is not true ?XML
a. Dom Parser loads the whole doument at once in memory
b. A DOM Parser is much more memory efficient
c. Dom Parser doesn't load the whole doument at once in memory
d. A SAX Parser is much more memory efficient

Ans.b. A DOM Parser is much more memory efficient



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: