Introduction : This is the 2nd part of Java tips series. We have tried to focus more on the hands-on coding part rather that the theoretical one. Hope this will help you learn the concepts and implement them in practical…
10 Java Tips – Series I
How memory is managed in java? In Java manual memory allocation and de-allocation has been eliminated. Memory in Java is automatically garbage collected so you never have to worry about memory corruption. Java memory is managed by the memory model.…
Which Tools Support Java 9’s New Modularity Features?
Overview: Java 9 was released in late September. With the release of Java 9, it went modular to improve its scalability and performance. Modularity is a general concept. In software, it applies to writing and implementing a program or computing…
Comprehensive Guide on Java 9 and Java 10 Updates
Let us explore Java 9 first Overview Java 9 is now available for use. Like with any major software release, it has many new features, enhancements and deprecation. Note that this will be the last major release in the line…
How to improve your Java code quality?
The main objective of software coding is to produce quality software applications. However, to do that, the software code, which we will refer as codebase, must tick certain checkpoints such as code reviews, technical debt, design flaw review, bugs or…
Serialization in java – How it works?
Object serialization is the ability of the object to save a complete copy of it and any other objects that it references to an output stream (external file); so that the object can be recreated from the serialized copy at…
How to Use XPath to Extract Information?
XML documents often play an important role in the interchange of data over the Internet. These are used for tons of applications like RSS, Atom, and XHTML, and can be used in office programs to add and modify information. Web…
How to write Java annotations?
In this article we will discuss about annotations and how they can be used in practical programming. First, we will discuss some conceptual ideas and then jump into coding to write an example program using annotations. Motivation: In Java programming,…
Steps to integrate facebook with Java
Overview: Social media like facebook, linked-in, twitter are become popular for web marketing. The exposure to social media has a tremendous impact on different fields of marketing, promotion etc. In this article we will discuss facebook integration with java application.…
Accessors and Mutators in Java- How it works?
Overview: In this article we will discuss about java accessors. Accessors are basically member functions which are used to access and manipulate field values. We will also discuss the advantages and disadvantages of using accessors in java application. Introduction: Accessors…
How to secure web application using JAAS?
Overview: Security is one of the main aspects in web applications. So the success of web application depends on the security implementation also. And for mission critical applications, security aspect has to be implemented and tested before it goes into…
Let’s clone in Java
Introduction The Cloneable interface in java is a marker interface. It does have any method. But if we write a class as below, it gives a message to the jvm that the class can be cloned. The following code shows…
Steps to create recurring tasks in Java
Overview: In this document, we will discuss about scheduling tasks in java application. There are different ways to implement recurring tasks and we will discuss some of them here. Java provides various APIs to implement recurring tasks and we will…