Blog Archives

01: 12 Web basics every Java web developer must know – Part 1

Q1. HTTP is a stateless protocol, so how do you maintain state? How do you store user data between requests?
A1. This is a commonly asked interview question. The “http protocol is a stateless request/response based protocol”. You can retain the state information between different page requests as follows:

HTTP Session. A session identifies the requests that originate from the same browser during the period of conversation. All the servlets can share the same session. The JSESSIONID is generated by the server and can be passed to client through cookies, URL re-writing (if cookies are turned off) or built-in …

Tags:

01: High level & low level system design considerations for read heavy systems

Q1. What are some of the design considerations for a read heavy system? A1. Before designing any systems, one should gather the functional & non-functional requirements. The SLAs (i.e. Service Level Agreements) have to be clearly defined. A rough-cut capacity planning has to be done in terms of how many…



01: High level & low level system design considerations for write heavy systems

This extends High level & low level system design considerations for read heavy systems Q1. What are some of the design considerations for a write heavy system? A1. Before designing any systems, one should gather the functional & non-functional requirements. The SLAs (i.e. Service Level Agreements) have to be clearly…



02: HTTP basics on headers, MIME types, & cookies for Java developers

Q1. What happens when you open up a browser and type a URL to request a Web page or RESTFul web service data? A1. HTTP is a stateless protocol on top of TCP (Transmission Control Protocol). 1) When the IP address is obtained, the browser will attempt to open a…



03: How would you go about designing an online shopping cart?

This question is a very popular white board session question for both Java architects and experienced JEE Developers. You need to draw on your experience to tackle this question as there are no right or wrong answers. These high level diagrams and summary will help you refresh your memory. Q….



12 Web basics every Java web developer must know – Part 2

This extends 12 Web basics every Java web developer must know – Part 1

Q7. What do you understand by client side and server side templating?
A7. The modern rich single page web applications built today harness the power of dynamically typed and interpreted languages like JavaScript for faster prototyping and increased developer productivity and statically typed Java based frameworks for maintainability, robustness, easier refactoring, and scalability. The modern browsers using faster JavaScript engines and efficient minification of JavaScript files have made client side templating a reality.

The server side templates are such as JSPs, Facelets for JSF, Apache Velocity, …



18 Java scenarios based interview Q&As for the experienced – Part 1

Let’s look at scenarios or problem statements & how would you go about handling those scenarios in Java. These scenarios interview questions will judge your Java experience. Full list of Java scenarios based interview questions are covered at Judging your Java experience via scenarios based interview Q&As.

#1. Caching

Q01.Scenario: You need to load stock exchange security codes with price from a database and cache them for performance. The security codes need to be refreshed say every 30 minutes. This cached data needs to be populated and refreshed by a single writer thread and read by several reader …

Tags:

18 Java scenarios based interview Q&As for the experienced – Part 2

This extends 18 Java scenarios based interview Q&As for the experienced – Part 1 #9 Single Sign-On Q09. Scenario: You have a number of applications like cash, mortgages, investments, etc where a user has to login separately into each system. For example, a user with all 3 products has to…



3 key “How would you go about …” Q&As to judge Java experience

Q1. How would you go about judging the code quality of other developers? A1. 1) Code written with unit tests and progressively re-factored where necessary to make it more maintainable, testable, and readable. 2) Unit tests need to be written properly — mock objects using frameworks like Mockito and Power…

Tags:

How to become a Java architect?

In industry specific forums, I often see questions like “what certification do I need to do to become an architect?” The simple answer is that you don’t need a certification to become an architect. It may help, but it takes a lot more to become an architect.

You just can’t only study to become a Java architect. The best way to become a Java architect is to start thinking and acting like one. You need to start asking the right questions. You must not only have good communication & interpersonal skills, but also look at things from …

Tags:

SDLC process interview Q&As

No right or wrong answers. The depth and quality of the answers will can prove your seniority and experience. Q1. What are the SDLC activities you perform as a Java developer? A1. Don’t get overwhelmed by this activities list. This proves why employers favor experience to just academic qualifications alone….

Tags:

XMPP, MQTT and Web Sockets protocols for building messaging & chat applications

These interview Q&As are handy if you are asked to design an instant messaging application. WhatsApp, Facebook Messenger, WebChat, Slack, Viber, etc are instant messaging applications. Microsoft Teams has an instant messaging platform with features such as instant chat, emojis, GIFs, rich-text editing, threaded conversations, plus the ability to share…



300+ Java & Big Data FAQs - Quick Prep

Java & Big Data Tutorials

Top