REST architectural principles

This post aims to explain the following :   – What are REST architectural principles ? – What is HATEOAS ?   Here are the architectural principle in REST :     Addressability   In REST, URIs are used to address a resource. Each HTTP request must contain URI of the object whose state is […]

Symmetric/Asymmetric Encryption and Decryption

   Basic Encryption/Decryption strategy:   The aim of encrypting/decrypting data is to make sure the data sent by sender can be understood by the intended recipient only.   For example, if person A is sending a message to person B, another person C eavesdropping to the message should not be able to read it. So, […]

J2EE Interview Questions – Part 2

Click on below link to see part 1 of the J2EE interview questions:  J2EE Interview Questions   Here are the next set of J2EE interview questions & answers.   Difference between HTTPServlet and GenericServlet   GenericServlet is protocol independent. HttpServlet extends GenericServlet and provides support HTTP protocol specific methods like goGet() and doPost().   Difference between […]

J2EE Interview questions – Part 1

HTTP is a stateless protocol. So, how to maintain state between requests in J2ee ?   State can be maintained in following ways: HttpSession Hidden Field URL Rewriting Cookies Hidden fields on the page can maintain state and they aren’t visible on the browser. The downside is they may expose sensitive information. In URL rewriting, […]