Ever since Java introduced annotations, every framework has been looking to provide an XML alternative to their configuration information. So how could servlets be left behind.
Search This Blog
Wednesday, 20 January 2016
Servlet 3.x - Building the web.xml less Web Application
Saturday, 16 January 2016
try with resource - dealing with failures
In the previous post we saw the try-with-resource statements and how the execution flows. Here I decided to look at the java.sql.Connection class which also implements the AutoCloseable interface.
Wednesday, 6 January 2016
Java Streams
We have been exploring Lambda expressions and Functional Interfaces in the past few posts. Now is the time to move to a related new feature called Streams.
try with resource
I have often used the try-with-resources Statement that was introduced in Java 7. Today I decided to look a little deep into it.
In earlier versions of java when dealing with resources that need closing, the code something like below:
In earlier versions of java when dealing with resources that need closing, the code something like below:
Tuesday, 29 December 2015
Neo4j - Select with parameters
In the previous post we worked on executing a simple select query - one that selected all the Person records in our database. In this post I decided to work on parameterized retrieval. I decided to
execute the below query:
MATCH (a:Person{name: "Keanu Reeves"})-[:ACTED_IN]->(m:Movie) RETURN a,m
Only instead of hardcoding 'Keanu Reeves', I would like my method to work for different actors.
execute the below query:
MATCH (a:Person{name: "Keanu Reeves"})-[:ACTED_IN]->(m:Movie) RETURN a,m
Only instead of hardcoding 'Keanu Reeves', I would like my method to work for different actors.
Subscribe to:
Posts (Atom)