• 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

JAX-RS REST @Consumes both XML and JSON Example

November 25, 2015 by javainterviewpoint Leave a Comment

Consumes_XML1

Previously we have learnt how to use @Produces annotation, Consuming JSON or Consuming XML separately. We have consumed either xml or json request but not both xml and json in a single method. In this example we will learn how to consume multiple media type which the client is giving as input, lets see how we can achieve it. … [Read more...]

JAX-RS REST @Produces both XML and JSON Example

November 12, 2015 by javainterviewpoint Leave a Comment

Produces_XML1

In my previous article we have learnt how to use @Produces annotation. We have produced either xml or json response but not able to produce both xml and json in a single method. In this example we will learn how to produce multiple media type response depending upon the clients request we will produce response, lets see how we can achieve it. … [Read more...]

JAX-RS REST @Consumes Example

November 5, 2015 by javainterviewpoint Leave a Comment

Previously we have learnt about how to produce different types of responses using @Produces annotation, In this article we will learn how to consume different types of request from the user using @Consumes annotation. @Consumes annotation is used to specify the MIME media types that a resource can consume. @Consumes can be applied at both class level and method level, If … [Read more...]

JAX-RS REST @Produces Example

October 28, 2015 by javainterviewpoint Leave a Comment

Spring Rest Xml

Previously we have learnt about how to get parameters using @PathParam, @QueryParam, @Context, @FormParam, @MatrixParam annotations, In this article we will learn how to send different types of response back to the user using @Produces annotation. @Produces annotation is used to specify the MIME media types that a resource can produce and send back to the client. … [Read more...]

JAX-RS REST @FormParam Example

October 16, 2015 by javainterviewpoint Leave a Comment

FormParamExample1

Previously we have learnt about @PathParam, @QueryParam, @Context, @MatrixParam annotations, In this article we will learn how to get the values from the Form which is getting submitted using @FormParam annotation. … [Read more...]

JAX-RS REST @MatrixParam Example

September 21, 2015 by javainterviewpoint Leave a Comment

We already know how to get the values using @QueryParam, @Context and get path parameter using @PathParam annotation, now lets learn how to get the value of a Matrix parameter passed using @MatrixParam Annotation. Matrix Parameter will be in the form of Key Value pairs separated by semicolon (;) … [Read more...]

JAX-RS @Context Example

May 4, 2015 by javainterviewpoint Leave a Comment

In our previous example we have learnt how to get the values using @QueryParam Annotation, now we will learn the usage of @Context annotation in getting the Query Parameters. … [Read more...]

JAX-RS @DefaultValue Example

April 22, 2015 by javainterviewpoint Leave a Comment

In our previous example we have learnt how to get the values using @QueryParam Annotation, now we will learn the usage of @DefaultValue annotation with @QueryParam. @DefaultValue is used to set a default value to the query param even when the parameters are not passed. … [Read more...]

JAX-RS @QueryParam Example

January 22, 2015 by javainterviewpoint Leave a Comment

We know there are two ways to pass the parameter in a GET request of the REST Service. First way is using @PathParam and the Other way is using @QueryParam. We have already learnt how to use @PathParam annotation, Now lets look into @QueryParam in this tutorial. … [Read more...]

JAX-RS @PathParam Example

January 21, 2015 by javainterviewpoint Leave a Comment

In this example, we will learn how to use the @PathParam annotation to get the Parameter passed in the URI in JAX-RS RESTful [email protected] parses the values of the parameter which is passed through @Path annotation.  … [Read more...]

JAX-RS @Path URI Matching Example

January 1, 2015 by javainterviewpoint Leave a Comment

In JAX-RS, you can use @Path annotation to bind URI pattern to a Java method. In this example, we will learn how to use the @Path in a JAX-RS RESTful service to direct the user to different methods based on the values passed in the URI. … [Read more...]

JAX-RS Jersey Hello World Example

December 25, 2014 by javainterviewpoint Leave a Comment

RESTful_hello_world_Jersey

In this tutorial, we will create a simple hello world web service with the JAX-RS reference implementation Jersey, which is the reference implementation of the JSR 311 specification.JAX-RS is part of the Java EE.   … [Read more...]

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 ·