-
Enterprise Java
Differences between @RequestParam and @PathVariable annotations in Spring MVC?
The Spring MVC framework, one of the most popular frameworks for developing a web application in Java world also provides…
Read More » -
Core Java
Can a non static method access static variable/method in Java?
“Can a non-static method access a static variable or call a static method” is one of the frequently asked questions…
Read More » -
Enterprise Java
DispatcherServlet of Spring MVC – 10 things Java Developer should know
If you have worked with Spring MVC then you should know what is a DispatcherServlet? It’s actually the heart of Spring…
Read More » -
Core Java
Java 8 – Sorting HashMap by values in ascending and descending order
In the last article, I have shown you how to sort a Map in Java 8 by keys and today, I’ll…
Read More » -
Enterprise Java
Difference between @RestController and @Controller Annotation in Spring MVC and REST
The @RestController annotation in Spring MVC is nothing but a combination of the @Controller and the @ResponseBody annotation. It was…
Read More » -
Enterprise Java
What does the InternalResourceViewResolver do in Spring MVC?
The InternalResourceViewResolver is an implementation of ViewResolver in Spring MVC framework which resolves logical view name e.g. "hello" to internal…
Read More » -
Core Java
How to convert a lambda expression to method reference in Java 8?
If you have been coding in Java 8 then you know that using method reference in place of lambda expression…
Read More » -
Core Java
How to create a thread-safe ConcurrentHashSet in Java 8?
Until JDK 8, there was no way to create a large, thread-safe, ConcurrentHashSet in Java. The java.util.concurrent package doesn’t even…
Read More » -
Core Java
How to format/parse dates with LocalDateTime in Java 8 – Example Tutorial
One of the common tasks in Java project is formatting or parsing date to String and vice-versa. Parsing date means…
Read More »