I am going to divide this post into following topics for ease of understanding to the readers: What is a WebSocket? JavaEE 7 Support for creating WebSocket end points Javascript support to create WebSocket client end point What is a WebSocket? It is a feature being introduced as part of the HTML5 specification. It introduces …
Working with DOM in Javascript
In this article we will study about DOM, what are its characteristics and properties and in addition, we will see practical examples of how to use the DOM in JavaScript. The Document Object Model or simply DOM is used by web browser to represent your Web page . When this pattern is altered by the use of Javascript it also …
Asynchronous Servlet – A new feature in Servlet 3.0 and Java EE 6
When Java EE 6 was announced with a new servlet specification i.e Servlet 3.0 – Asynchronous servlet was a very important feature added to the new specification. Suppose your servlet does a long running task like making a JDBC call or invoking a web service, such operations generally take up a lot of CPU time …
Spring Boot Complete Guide
This tutorial explains the basic concepts of Spring Boot and how to run a simple application using the Spring Boot framework. Also end of this tutorial, popular tutorials on Spring Boot has been collated and given for the readers reference. Table of Contents Introduction Why we need spring boot? Spring boot releases What is spring …
Garbage Collection in Java
In this article we will cover the proper use of Garbage Collection. Let us learn how it works, and understand how to induce the Garbage Collection. The Garbage Collection is a tool coupled to the JVM, that performs cleanup of objects in memory (Read: static utility for objects) which are of no further use. Our application will constantly suffer …
Best Practices to Override toString Method in Java?
In this article to we will see how to override the toString method and what are the best practices in Java. Java provides a default implementation for the method toString through a class java.lang.Object which is inherited by all Java classes . However, what it returns is not very informative. Your returned value is composed …
Difference between Checked and Unchecked Exceptions in Java
In this article we will understand the differences between Checked and Unchecked Exceptions in Java language.Exception handling is essential to make a robust application, because the user does not want to see a stacktrace on your screen, but a well-written message indicating that only an error occurred. All the applications are subject to failures, and …
Spring 4.0 Features At a Glance
If you remember, Spring 3.0 released nearly four years back. There is no other major release from the Spring Framework, only the incremental release like 3.1, 3.2 and 3.3. Now they are breaking the ice with Spring Framework 4.0 announcement. It is announced that the new version would be released any time between September or …