• 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 RESTful Web Services CRUD Example with Hibernate + RestTemplate

August 14, 2017 by javainterviewpoint 2 Comments

Spring RESTful Web Services CRUD

In this Spring REST tutorial, we will learn how to perform CRUD Operations (Create, Read, Update, Delete) using Spring RESTful Web Services with the support of Hibernate JPA. In REST, manipulation of the resources is performed based on the common set of HTTP verbs. POST -  To Create a resource GET - To Retrieve a resource PUT - To Update a resource DELETE - To … [Read more...]

Spring Dependency Checking and Spring @Required Annotation

May 31, 2016 by javainterviewpoint Leave a Comment

UnsatisfiedDependencyException

For a large-scale application, there can be hundreds of bean declared in the Spring IoC container and managing dependency between them will be already complicated. Especially through Setter Injection, we cannot make sure that values for all the properties has been injected. Spring dependency checking feature will come into rescue in this situation which helps us to check if … [Read more...]

Spring Constructor Injection – Resolving Ambiguity

May 13, 2016 by javainterviewpoint Leave a Comment

Constructor Injection

In Spring Constructor Injection we will be injecting values to the property using the Constructor available. Whenever you specify the class attribute for a bean, then you are implicitly asking the Spring IoC container to create the bean instance by invoking its constructor. … [Read more...]

Spring REST Hello World Example – JSON and XML responses

April 5, 2016 by javainterviewpoint 2 Comments

Spring Rest Json

As we already know Spring Core, Spring MVC and REST Web service. Now its our turn to learn Spring with REST Web services as a single entity. In this Spring REST Example we will be learning how to produce JSON and XML response by creating a simple REST service using Spring 4. … [Read more...]

Spring Autowiring constructor Example

January 11, 2016 by javainterviewpoint Leave a Comment

In this article lets take a look into Autowiring by constructor, This type of Autowiring is similar to Autowiring byType , but type applies to constructor arguments. Spring framework tries to match the arguments of the Constructor to the bean type in the configuration file, If a bean is found then Spring injects the object. If not found then it will throw exception. … [Read more...]

Spring Autowiring byType Example

January 11, 2016 by javainterviewpoint Leave a Comment

In this article lets take a look into Autowiring byType, This type of Autowiring in Spring the Spring framework injects dependency based on type(class). Unlike Autowiring byName bean id and property name can be different. It tries to match the property type to the bean type in the configuration file, If a bean is found then Spring internally uses Setter Injection and the object … [Read more...]

Spring Autowiring byName Example

January 4, 2016 by javainterviewpoint Leave a Comment

We all know what is Autowiring in Spring,now lets take a look into Autowiring byName in this article. In this type of autowiring, Spring framework finds out a bean in the configuration file, whose bean id is matching with the property name.  If a bean is found with the bean id as the property name in the configuration file then Spring internally uses Setter Injection and the … [Read more...]

Spring Bean Scopes Example

December 23, 2015 by javainterviewpoint Leave a Comment

While defining Spring Bean we have options to define scopes for each bean. Spring supports 5 bean scopes. singleton – This scope returns a single bean instance per Spring IoC container(Default Scope) prototype – This scope returns a new bean instance every time request – This scope returns a single bean instance for each HTTP request. session – This scope returns … [Read more...]

How to lazy initialize Spring beans?

October 9, 2015 by javainterviewpoint Leave a Comment

The way of loading Spring Beans is one of the most important difference between BeanFactory and  ApplicationContext. The BeanFactory by default lazy loads the beans, it creates the bean only when the getBean() method is called. whereas ApplicationContext preloads all the singleton beans upon start-up. … [Read more...]

Spring MVC SimpleFormController Example

October 5, 2015 by javainterviewpoint Leave a Comment

StudentRegistrationForm

We have already learnt about Form handling in Spring using @Controller annotation. In this article we will learn how to use SimpleFormController(Deprecated in Spring 3) instead of @Controller to handle a Spring MVC Form. … [Read more...]

Spring Difference between Setter and Constructor Injection

April 13, 2015 by javainterviewpoint Leave a Comment

Spring supports two types of injection Setter Injection which uses POJO's(getters and setters) for injecting and the other type is Constructor Injection which uses constructors for injection. Both approaches of injection have their own pros and cons let's now discuss them in this article. … [Read more...]

Spring Dependency Injection – Constructor Injection

April 9, 2015 by javainterviewpoint Leave a Comment

Through my earlier posts we have learnt about Spring Setter Injection and all its types, in setter injection we will be having the POJO's for all the property which is present in the class, whereas in Constructor Injection we will have the parameterized constructors which will be setting values to the properties. We will be using <constructor-arg> tag to achieve it. … [Read more...]

  • 1
  • 2
  • 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 ©2022 · Java Interview Point - All Rights Are Reserved ·