Question
When should you prefer to use doGet() over doPost()

Answers

GET is preferred over POST in most of the situations except for the following:
- When the data is sensitive.- When the data is greater than 1024 characters.When using servlets to build the HTML, you build a DOCTYPE line,why do you do that?

- Building a DOCTYPE line informs the HTML validators about the version of HTML you are using. This tells them the specification against which your document should be checked.
- These validators work as valuable debuggers which help you catch the HTML syntax errors.Why is a constructor needed in a servlet even if we use the init method?- Although the init method of the servlet initializes it, a constructor instantiates it.- A developer might never explicitly call the servlet's constructor but a container uses it to create an instance of the servlet.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q How do I pass a pointer-to-member-function to a signal handler, X event callback, system call that starts a thread/task, etc?
  • Q Which is the fifth largest planet in outer space?
  • Q Zardozi embroidery became popular under
  • Q The Kerala boy who got order 10 world Chess championship in 2014.
  • Q Who is the Indian Business man who has ranked 6th among the top most powerful faces in the world in Forbes Magazine?
  • Q The retired judge of High Court is not permitted to practice as a lawyer in-
  • Q What is meant by query optimization?
  • Q In which sport are the trainees traditionally bricklayers
  • Q Why do I get 80070057 errors?
  • Q Which planet's satellites have the name of Shakespeare's players?
  • Q How does silverlight 2 differ from adobe flash?