• Java
    • JAXB Tutorial
      • What is JAXB
      • JAXB Marshalling Example
      • JAXB UnMarshalling Example
  • Spring Tutorial
    • Spring Core Tutorial
    • Spring MVC Tutorial
      • Quick Start
        • Flow Diagram
        • Hello World Example
        • Form Handling Example
      • Handler Mapping
        • BeanNameUrlHandlerMapping
        • ControllerClassNameHandlerMapping
        • SimpleUrlHandlerMapping
      • Validation & Exception Handling
        • Validation+Annotations
        • Validation+ResourceBundle
        • @ExceptionHandler
        • @ControllerAdvice
        • Custom Exception Handling
      • Form Tag Library
        • Textbox Example
        • TextArea Example
        • Password Example
        • Dropdown Box Example
        • Checkboxes Example
        • Radiobuttons Example
        • HiddenValue Example
      • Misc
        • Change Config file name
    • Spring Boot Tutorial
  • Hibernate Tutorial
  • REST Tutorial
    • JAX-RS REST @PathParam Example
    • JAX-RS REST @QueryParam Example
    • JAX-RS REST @DefaultValue Example
    • JAX-RS REST @Context Example
    • JAX-RS REST @MatrixParam Example
    • JAX-RS REST @FormParam Example
    • JAX-RS REST @Produces Example
    • JAX-RS REST @Consumes Example
    • JAX-RS REST @Produces both XML and JSON Example
    • JAX-RS REST @Consumes both XML and JSON Example
  • Miscellaneous
    • JSON Parser
      • Read a JSON file
      • Write JSON object to File
      • Read / Write JSON using GSON
      • Java Object to JSON using JAXB
    • CSV Parser
      • Read / Write CSV file
      • Read/Parse/Write CSV File – OpenCSV
      • Export data into a CSV File
      • CsvToBean and BeanToCsv – OpenCSV

JavaInterviewPoint

Java Development Tutorials

Spring Dependency Injection [Inversion of Control]

September 8, 2020 by javainterviewpoint Leave a Comment

Spring Dependency Injection

Dependency Injection(DI) is the most important feature of Spring Framework. Dependency Injection is a design pattern that removes the dependency between objects so that the objects are loosely coupled. In Spring there exist two major types of Dependency Injection. Setter Injection Constructor Injection … [Read more...]

Top 80 Spring Interview Questions

July 27, 2020 by javainterviewpoint Leave a Comment

Spring Interview Questions

1. What is Spring Framework? Spring is an open-source framework created to address the complexity of building enterprise applications. It eases the development effort by providing IOC container, Dependency Injection, Aspect-oriented programming, etc. Spring framework also allows you to connect to other frameworks such as Struts, EJB, Hibernate, etc. 2. What are the advantages … [Read more...]

Spring Boot JPA One To One Example with MySQL | Unidirectional & Bidirectional

September 25, 2019 by javainterviewpoint Leave a Comment

Spring Boot JPA One To One Example

In this article, we will learn how to create a Spring Boot JPA One To One mapping using Spring Data JPA with Foreign Key. In this approach, we will have two tables with different primary keys. The primary key of the STUDENT table (ID) will act as a foreign key for the PASSPORT table and PASSPORT table will have its own primary key (ID). … [Read more...]

Spring Security – Custom UserDetailsService Example | InMemory & Database Authentication

September 11, 2019 by javainterviewpoint Leave a Comment

Spring Security Custom UserDetailsService Example

Previously we have learned about InMemoryUserDetailManager and JdbcUserDetailsManager. UserDetailsService is the core interface which is responsible for providing the User information to the AuthenticationManager. In this article, we will create a Custom UserDetailsService retrieves the user details from both InMemory and JDBC. … [Read more...]

Spring Security – JdbcUserDetailsManager Example | JDBC Authentication and Authorization

August 21, 2019 by javainterviewpoint Leave a Comment

Folder Structure

In the previous article, we have learned about Spring InMemoryUserDetailsManager which internally stores and retrieves the user-related information, Spring Security's JdbcUserDetailsManager class uses the database to store and retrieve the user information. In this JdbcUserDetailsManager Example, we perform Create, Read, Update, and Delete (CRUD) operations on the user details … [Read more...]

Spring Security – InMemoryUserDetailsManager Example | In-Memory Authentication

August 7, 2019 by javainterviewpoint Leave a Comment

InMemoryUserDetailsManager User Check

Spring In-Memory authentication uses InMemoryUserDetailsManager internally store and retrieve the user-related information which is required for Authentication. In this InMemoryUserDetailsManager Example, we will learn how to create and store the user to the in-memory HashMap, update the user credentials and finally delete the User. … [Read more...]

Spring Data MongoDB Example – MongoRepository

July 31, 2019 by javainterviewpoint Leave a Comment

Spring Data MongoDB Example

In this Spring Data MongoDB Example, we will build a Simple Spring Application and perform CRUD operations on the Mongo Database with the help of Spring Data MongoDB and MongoRepository. MongoDB is a document-based NoSQL database, providing high performance and high availability. Spring provides seamless integration with the Mongo database through Spring Data MongoDB which is a … [Read more...]

Spring Data REST Example – Spring Boot RESTful API + CRUD

July 24, 2019 by javainterviewpoint Leave a Comment

Spring Data REST Example

Spring Data REST is built on top of the Spring Data repositories and it automatically exposes the repositories as REST services. Spring Data REST takes the features of Spring HATEOAS and Spring Data JPA and combines them together, using a Strategy called "RepositoryDetectionStrategy" to export the repository as a REST resource. In this Spring Data REST Example, let's create a … [Read more...]

Spring Boot MVC | Spring Boot JSP Example

July 17, 2019 by javainterviewpoint Leave a Comment

Spring Boot MVC

In this article, we will learn how to create a Spring Boot MVC application, which is simply a Spring MVC application using Spring Boot. Unlike a typical Spring Boot application, we will be rendering the JSP page to the user. Let's get started. … [Read more...]

Spring Interceptor Example | HandlerInterceptor | HandlerInterceptorAdapter

March 4, 2019 by javainterviewpoint Leave a Comment

Spring Interceptor

Spring Interceptor is similar to a Filter, which is used to intercept the request and process them. Spring MVC allows you to intercept web requests for pre-handling and post-handling through Handler Interceptors. All the Interceptor class must either implement the HandlerInterceptor interface or extend the HandlerInterceptorAdapter class. Spring … [Read more...]

Spring Boot Exception Handling – @RestControllerAdvice + @ExceptionHandler

February 13, 2019 by javainterviewpoint 2 Comments

Spring Boot Exception Handling

A good REST API should handle the exception properly and send the proper response to the user. The user should not be rendered with any unhandled exception. In this Spring Boot Exception Handling article, we will learn how to handle in exception in Spring Boot RESTful Web Services using @RestControllerAdvice and @ExceptionHandler … [Read more...]

Spring Security Custom Login Form Example | Java Configuration

January 29, 2019 by javainterviewpoint Leave a Comment

Spring Security Custom Login Form 1

In this Spring Security Custom Login Form Example, we will learn how to build a Spring MVC application which will be protected by Spring Security. We will be building our own login form rather than using the default form provided by Spring Security  … [Read more...]

  • 1
  • 2
  • 3
  • …
  • 8
  • Next Page »

Java Basics

  • JVM Architecture
  • Object in Java
  • Class in Java
  • How to Set Classpath for Java in Windows
  • Components of JDK
  • Decompiling a class file
  • Use of Class.forName in java
  • Use Class.forName in SQL JDBC

Oops Concepts

  • Inheritance in Java
  • Types of Inheritance in Java
  • Single Inheritance in Java
  • Multiple Inheritance in Java
  • Multilevel Inheritance in Java
  • Hierarchical Inheritance in Java
  • Hybrid Inheritance in Java
  • Polymorphism in Java – Method Overloading and Overriding
  • Types of Polymorphism in java
  • Method Overriding in Java
  • Can we Overload static methods in Java
  • Can we Override static methods in Java
  • Java Constructor Overloading
  • Java Method Overloading Example
  • Encapsulation in Java with Example
  • Constructor in Java
  • Constructor in an Interface?
  • Parameterized Constructor in Java
  • Constructor Chaining with example
  • What is the use of a Private Constructors in Java
  • Interface in Java
  • What is Marker Interface
  • Abstract Class in Java

Java Keywords

  • Java this keyword
  • Java super keyword
  • Final Keyword in Java
  • static Keyword in Java
  • Static Import
  • Transient Keyword

Miscellaneous

  • newInstance() method
  • How does Hashmap works internally in Java
  • Java Ternary operator
  • How System.out.println() really work?
  • Autoboxing and Unboxing Examples
  • Serialization and Deserialization in Java with Example
  • Generate SerialVersionUID in Java
  • How to make a class Immutable in Java
  • Differences betwen HashMap and Hashtable
  • Difference between Enumeration and Iterator ?
  • Difference between fail-fast and fail-safe Iterator
  • Difference Between Interface and Abstract Class in Java
  • Difference between equals() and ==
  • Sort Objects in a ArrayList using Java Comparable Interface
  • Sort Objects in a ArrayList using Java Comparator

Follow

  • Coding Utils

Useful Links

  • Spring 4.1.x Documentation
  • Spring 3.2.x Documentation
  • Spring 2.5.x Documentation
  • Java 6 API
  • Java 7 API
  • Java 8 API
  • Java EE 5 Tutorial
  • Java EE 6 Tutorial
  • Java EE 7 Tutorial
  • Maven Repository
  • Hibernate ORM

About JavaInterviewPoint

javainterviewpoint.com is a tech blog dedicated to all Java/J2EE developers and Web Developers. We publish useful tutorials on Java, J2EE and all latest frameworks.

All examples and tutorials posted here are very well tested in our development environment.

Connect with us on Facebook | Privacy Policy | Sitemap

Copyright ©2023 · Java Interview Point - All Rights Are Reserved ·