Submitted by heartin on Tue, 07/05/2016 - 21:03
Below JAX-RS annotations aid in mapping a resource class (a POJO) as a web resource:
Submitted by heartin on Tue, 07/05/2016 - 20:28
REST follows resource oriented architecture as opposed to the popular service oriented architecture followed by SOAP web services.
Resource-Oriented Architecture has four important concepts:
Submitted by heartin on Sun, 07/03/2016 - 21:57
Java is one of the most popular programming languages. However, recently many other programming languages have come and some of them even running on top of the Java Virtual Machine (JVM). Many of these languages support newer programming practices like functional programming and comes with a bunch of out of the box functionalities that abstract away most of the low level details from the programmer.
Submitted by heartin on Tue, 06/14/2016 - 22:59
Java 8 has has made some improvements in collections framework such as a new forEach loop, better type inference etc. We will list out those features here.
The forEach method
The default forEach method of the Iterable interface performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
Signature of the methiod is: void forEach(Consumer<? super T> action) [node:read-more:link]
Submitted by heartin on Mon, 06/13/2016 - 21:35
Before Java 8, you could only use final variables from a surrounding class in an anonymous inner class. In Java 8, within anonymous class (or lambda expressions) you can use effectively final variables: not declared as final but only assigned once.
Important points about accessing variables from within an anonymous inner class (or lambda expression) [node:read-more:link]