Java and Spring Interview Guides
Useful interview resources
- Lambda Expressions and Streams : https://www.youtube.com/watch?v=7YBPb64h2l4
- Java MultiThreading : https://www.youtube.com/watch?v=AfVbJDr-8ic
- Java Interview Questions and Answers : https://www.youtube.com/watch?v=5aHZABb1Iwk
- Java Collections Interview Questions and Answers : https://www.youtube.com/watch?v=3hgYHXDVh-o
- Exception Handling : https://www.youtube.com/watch?v=wj3UmzeyrvE
- JUnit : https://www.youtube.com/watch?v=o5k9NOR9lrI
- Design Patterns : https://www.youtube.com/watch?v=f5Rzr5mVNbY
- Eclipse : https://www.youtube.com/watch?v=s4ShbtOHMCA
- Mockito : https://www.youtube.com/watch?v=d2KwvXQgQx4
- Spring MVC : https://www.youtube.com/watch?v=BjNhGaZDr0Y
- JSP Servlets : https://www.youtube.com/watch?v=Vvnliarkw48
- Spring : https://www.youtube.com/watch?v=24rGqtxuLhc
- OOPS : https://www.youtube.com/watch?v=yJ5RSEZS9oA
- Maven : https://www.youtube.com/watch?v=0CFWeVgzsqY
- https://github.com/in28minutes/Java-EE-Design-Patterns/blob/master/JavaEE%20Design%20Patterns%20and%20Architecture%20-%20Presentation%20v0.7.pdf
Our Best Free Courses
OOPS Interview Questions
- Code Examples : https://github.com/in28minutes/JavaObjectOrientedProgramming
- OOPS : https://www.youtube.com/watch?v=yJ5RSEZS9oA
Advanced Java
- Topics
- Servlets
- JSP
- Spring
- Spring MVC
- Maven
- What is maven? What does it do? https://github.com/in28minutes/MavenIn28Minutes
- Videos & Presentations
- Full Video on Design Patterns : https://www.youtube.com/watch?v=f5Rzr5mVNbY
- Basics of Web Application : https://github.com/in28minutes/RealWorldWebApplicationWithServletsAndJspIn28Minutes/blob/master/Java%20JEE%20Web%20Applicaiton%20In28Minutes.pdf
- Java EE Design Patterns : https://github.com/in28minutes/Java-EE-Design-Patterns/blob/master/JavaEE%20Design%20Patterns%20and%20Architecture%20-%20Presentation%20v0.7.pdf
- Java Design Patterns : https://github.com/in28minutes/Design-Patterns-For-Beginners/blob/master/DesignPatterns-Presentation.pdf
- RECOMMENDED COURSE
Servlets
- Reference
-
https://github.com/in28minutes/RealWorldWebApplicationWithServletsAndJspIn28Minutes/blob/master/Java%20JEE%20Web%20Applicaiton%20In28Minutes.pdf
- Code : https://github.com/in28minutes/JavaWebApplicationStepByStep
- 60 Minute Video on JSP Servlets : https://www.youtube.com/watch?v=Vvnliarkw48
-
- Questions
- If there are 1000 requests to a Servlet, how many instances of Servlet are created?
- What is the life-cycle of a servlet?
- Difference between Get and Post Request Methods?
- What is difference between GenericServlet and HttpServlet?
- What is the purpose of RequestDispatcher Interface?
- How do you forward to a jsp from the servlet?
- What is Session?
- What are Cookies?
- What is filter?
- What is war file?
- What is the structure of a war file?
- What are the servlet annotations introduced in Servlet 3.0?
- What is different between web server and application server?
- What is difference between ServletConfig and ServletContext?
- What is maven? What does it do? https://github.com/in28minutes/MavenIn28Minutes
- RECOMMENDED COURSES
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
JSPs
- Reference
- Questions
- Why do we need JSPs?
- Explain JSP Lifecycle?
- What is difference in roles of jsp in model 1 and model 2 architectures?
- What are different types of comments in JSP?
- What is Scriptlet, Expression and Declaration in JSP?
- What are JSP implicit objects?
- What are the disadvantages of Scriptlets?
- What is difference between include directive and jsp:include action?
- What is JSP Expression Language?
- What are JSP EL implicit objects?
- What is JSTL?
- What happens if an exception is thrown from a JSP?
- JSP Best Practices
- How can you avoid multiple submit problem?
- RECOMMENDED COURSES
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
Design Patterns
- Resources
- Full Video on Design Patterns : https://www.youtube.com/watch?v=f5Rzr5mVNbY
- Java EE Design Patterns : https://github.com/in28minutes/Java-EE-Design-Patterns/blob/master/JavaEE%20Design%20Patterns%20and%20Architecture%20-%20Presentation%20v0.7.pdf
- Java Design Patterns : https://github.com/in28minutes/Design-Patterns-For-Beginners/blob/master/DesignPatterns-Presentation.pdf
- What are important Java EE Design Patterns? https://github.com/in28minutes/Java-EE-Design-Patterns
- Some Creational patterns Examples
- Factory method
- java.util.Calendar#getInstance() & java.nio.charset.Charset#forName()
- Prototype
- java.lang.Object#clone()
- Singleton
- java.lang.Runtime#getRuntime() & java.lang.System#getSecurityManager()
- Factory method
- Some Structural patterns
- Adapter
- java.util.Arrays#asList() & javax.xml.bind.annotation.adapters.XmlAdapter#marshal() and #unmarshal()
- Decorator
- All subclasses of java.io.InputStream, OutputStream etc. & java.util.Collections : synchronizedXXX() and unmodifiableXXX() methods.
- Flyweight
- java.lang.Integer#valueOf(int) (also on other Wrapper classes)
- Adapter
- Behavioral patterns
- Chain of responsibility
- javax.servlet.Filter#doFilter() & Exception Handling
- Command
- java.lang.Runnable
- Iterator
- All implementations of java.util.Iterator
- Strategy (recognizeable by behavioral methods in an abstract/interface type which invokes a method in an implementation of a different abstract/interface type which has been passed-in as method argument into the strategy implementation)
- java.util.Comparator#compare(), executed by among others Collections#sort().
- Template method (recognizeable by behavioral methods which already have a "default" behaviour definied by an abstract type)
- All non-abstract methods of java.util.AbstractList, java.util.AbstractSet and java.util.AbstractMap.
- Chain of responsibility
- RECOMMENDED COURSES
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
JDBC
- Resources
- Questions
- When do you use JDBC?
- Different types of JDBC Drivers
- What is the use of JDBC API?
- What are the steps in a simple query to database?
- What is difference between JDBC Statement and PreparedStatement?
- What is the difference between execute, executeQuery, executeUpdate?
- What is a ResultSet?
- What is the use of setFetchSize() and setMaxRows() methods in Statement?
- What is JDBC Batch Processing?
- What is Transaction Management?
- What is JDBC Savepoint?
- What is a DataSource?
- What are the CLOB and BLOB datatypes in JDBC? Why do you use them?
- What is DDL and DML?
- What are JDBC Best Practices?
- What are the other famous JDBC frameworks? How did they solve the typical problems with JDBC?
- What is JPA? https://github.com/in28minutes/HibernateJPAStepByStep
- What is Hibernate?
- Hibernate interview Questions : https://www.youtube.com/watch?v=nb4kKVDc4cE
- Introduction to Transaction Management : https://www.youtube.com/watch?v=HcjHJLEbtRs
- RECOMMENDED COURSES
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
J2EE
- Resources
- Questions
- What is JEE?
- What are tomcat, web sphere and web logic?
- What is war?
- What is ear?
- What are containers? what are the different types of containers?
- What is Java EE api? https://docs.oracle.com/javaee/7/api/
- Java EE 7 contains 14 new and updated JSRs. Java specifications are available at http://www.jcp.org.
- JSR 338: Java Persistence API 2.1
- JSR 339: Java API for RESTful WebServices2.0
- JSR 340: Java Servlet 3.1
- JSR 341: Expression Language 3.0
- JSR 342: Java Platform, Enterprise Edition 7
- JSR 343: Java Message Service 2.0
- JSR 344: JavaServer Faces 2.2
- JSR 345: Enterprise JavaBeans 3.2
- JSR 346: Contexts and Dependency Injection for JavaEE 1.1
- JSR 349: Bean Validation 1.1
- JSR 352: Batch Applications for the Java Platform 1.0
- JSR 353: Java API for JSON Processing 1.0
- What is JPA? https://github.com/in28minutes/HibernateJPAStepByStep
- What are important Java EE Design Patterns? https://github.com/in28minutes/Java-EE-Design-Patterns
- What is maven? What does it do? https://github.com/in28minutes/MavenIn28Minutes
- Introduction to Transaction Management : https://www.youtube.com/watch?v=HcjHJLEbtRs
- RECOMMENDED COURSES
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
Maven
- Resources
- Questions
- What is Maven? What does maven do? https://github.com/in28minutes/MavenIn28Minutes#0-what-is-maven
- What is the power of Maven? https://github.com/in28minutes/MavenIn28Minutes#what-is-the-power-of-maven
- Maven Full Course : https://www.youtube.com/watch?v=0CFWeVgzsqY
- What is Conventions over Configuration?
- What is the difference between Ant and Maven?
- What is the standard maven folder structure?
- What is a Local Repository?
- What is a transitive dependency?
- What is a dependency exclusion?
- What is dependencyManagement?
- How do you add code quality checks to your maven lifecycle?
- Why do we use Maven Plugins?
- What is Maven Build Lifecycle?
- What are the different types of artefacts that can be produced using a maven pom?
- What is a profile?
- What is a SNAPSHOT?
- What are maven properties?
- What is a maven archetype?
- What are maven best practices?
- What is a maven release?
- RECOMMENDED COURSES
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
Eclipse
- Resources
- Questions
- What is an IDE?
- What is an workspace?
- What are views?
- What are perspectives?
- Integration with Maven Full Course : https://www.youtube.com/watch?v=0CFWeVgzsqY
- RECOMMENDED COURSES
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
Jenkins
- Resources
- Questions
- What is Jenkins?
- What is continuous integration?
- How do you create a new project in Jenkins?
- What are typical builds that you would create in Jenkins?
- What is maven? What does it do? https://github.com/in28minutes/MavenIn28Minutes
- Maven Full Course : https://www.youtube.com/watch?v=0CFWeVgzsqY
- RECOMMENDED COURSES
- Java EE Patterns : https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=JEEPATTERNS-UTUBE-1
- Maven : https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-UTUBE-1
- Spring MVC : https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-UTUBE-1
- JSP Servlets : https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-UTUBE-1
For Later
- Git
- Selenium
- JavaScript
- JQuery
- JUnit