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:

02: JavaScript mistakes interview Q&As

Q1. What are the common JavaScript errors or bad practices that you have noticed? A1. 1) Not having proper namespaces and not using AMD (i.e. Asynchronous Model Definition) API to modularize the Java code for improved maintainability. 2) Not using the var to declare your variables. If you don’t use…

Tags:

03: 21+ Java Servlet interview Q&As

Q1. What is a Servlet? Is a Servlet inherently multi-threaded? A1. A Servlet is a Java class that runs within a web container in an application server, servicing multiple client requests concurrently forwarded through the server and the web container. The web browser establishes a socket connection to the host…

Tags: , ,

04: 7 JSP interview questions and answers

JSF or JavaScript based frameworks like angularjs, ember, etc are more popular than JSPs for web developemnt. Q1. What is a JSP? How does it differ from a Servlet? A1. JSP stands for Java Server Pages. JSP technology extends the Servlet technology, which means anything you can do with a…



06: Web design patterns MVC2, MVP, MVVM & MVW

Q1. What’s wrong with Servlets? What is a JSP? What is it used for? What do you know about model 0 (aka MVC0), model 1 (aka MVC1) and model 2 (aka MVC2) patterns? In “model 2” architecture, if you set a request attribute in your JSP, would you be able…

Tags:

12 FAQ JDBC interview Q&As

Q1. What are JDBC Statements? What are different types of statements? How can you create them? A1. A statement object is responsible for sending the SQL statements to the Database. Statement objects are created from the connection object and then executed.

Tags: ,

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, …



8 JEE (i.e. Java EE) Overview interview Q&As

This is JEE from a 10,000 feet before diving into details of each technology.

Q1. When a company requires Java EE experience, what are they really asking for?
A1. Java EE (i.e. Enterprise Edition) is a collection of specifications for developing and deploying enterprise applications. In general, Java enterprise applications refer to applications written in Java & packaged as war or ear files and hosted on application servers like Tomcat, JBoss, IBM Webspehere, etc. Some of the JEE core technologies & APIs are JPA, JDBC, JNDI, EJBs, RMI, JSP, JSF, Java Servlets, XML, JMS, Java IDL, JTS, JTA, JavaMail, …



9 JNDI and LDAP interview Q&A

Q1. What is JNDI? And what are the typical uses within a JEE application? A1. JNDI stands for Java Naming and Directory Interface. It provides a generic interface to LDAP (Lightweight Directory Access Protocol) and other directory services like NDS (Novell Directory Service), DNS (Domain Name Service) etc. It provides…



Client-side & Server side view technologies Q&As

Q1. What do you understand by client side and server side view technologies? A1. There are client side & server side view technologies available. Server side view technologies In server-side view technology the most of the page rendering happens on the server side. The server side view technologies are JSPs,…



Q01-Q28: Top 50+ FAQ JEE interview Q&As

Java interview questions & answers on EE (i.e. Enterprise Edition) with lots of diagrams & code to quickly grasp the concepts for the beginner to advanced Java developers. It pays to brush-up before attending Java job interviews. Q1. Can you describe the high level architecture of the application that you…

Tags: ,

Q29-Q53: Top 50+ FAQ JEE Interview Q&As

This extends Q1 – Q28 EE Java interview Questions and Answers Q29. What are the different ways can you wire up your dependencies using Spring? A29. 3 different ways. You can combine all 3 ways. Using an XML based application context file as demonstrated here in STEP 4 . Using…

Tags: ,

300+ Java & Big Data FAQs - Quick Prep

Java & Big Data Tutorials

Top