Posts Tagged ‘Java’

Page 1 of 612345...Last »

Calculate Free Disk Space in Java using Apache Commons IO

As a Java developer, lot of times I have to play around with file system. Sometimes I have to copy files/directories from one location to another; sometimes have to process certain files depending on certain pattern. In one of my test program, I wanted to calculate available disk space using Java. Lot of code snippets are ... Full story

Java Tip: How to Sort Arrays in Java using java.util.Arrays class

Here is a small but very useful tip that every Java programmer should be aware of. Have you ever tried sorting arrays in Java? Well, java.util.Arrays class has built in method to make your job easy. You can use following method to sort any array in Java. import java.util.Arrays; ... ... Arrays.sort (int ) Arrays.sort (float ) Arrays.sort (long ) ... Let us check an example were we will sort an array of ... Full story

Generate Pie Chart/Bar Graph in PDF using iText & JFreeChart

Generate Pie Chart/Bar Graph in PDF using iText & JFreeChart
iText is a wonderful library if you want to generate PDFs in Java. It comes with a huge set of API to create/manage a PDF file. We already saw in our previous tutorial how to generate a pdf file in itext and also how to merge ... Full story

10 Most Useful Java Best Practice Quotes for Java Developers

10 Most Useful Java Best Practice Quotes for Java Developers
Quote 1: Avoid creating unnecessary objects and always prefer to do Lazy Initialization Object creation in Java is one of the most expensive operation in terms of memory utilization and performance impact. It is thus advisable to create or initialize an object only when it is required in the code. public class Countries { private List countries; public ... Full story

R.I.P Sun: James Gosling paying Respects

The European Commission on Thursday approved Oracle Corp.'s acquisition of Sun Microsystems after regulators were assuaged over the fate of an open-source database, James Gosling have paid respect to Sun Microsystem on his blog. Please go to his blog and pay your respect to Sun. Full story
Tags:

Struts2 Validation Framework Tutorial with Example

Struts2 Validation Framework Tutorial with Example
Welcome to Part-3 of 7-part series of tutorials where we will go through different practical aspects of Struts2 Framework. In the last part we Created a Basic Struts2 Application from Scratch. I strongly recommend you to go through the previous articles in case you are new to Struts2. In this article we will learn how to ... Full story

Tutorial: Create Struts 2 Application in Eclipse

Tutorial: Create Struts 2 Application in Eclipse
Welcome to the Part 2 of 7-part series where we will explore the world of Struts 2 Framework. In previous article we went through the basics of Struts2, its Architecture diagram, the request processing lifecycle and a brief comparison of Struts1 and Struts2. If you have not gone through the previous article, I ... Full story

Introduction to Struts 2 Framework

Introduction to Struts 2 Framework
Lot of times I have been asked by users on this site to write tutorial about Struts 2 Framework. My previous tutorial on Creating Struts Application in Eclipse is one of the most viewed article on this site. So lets begin Part 1 of 7-parts series tutorials on Struts 2 Framework. In these tutorials we will discuss ... Full story

Advanced Messaging Queuing Protocol: A Short Note

Advanced Messaging Queuing Protocol: A Short Note
Synopsis This note deals with AMQP, and some implementations, especially Qpid and ActiveMQ. Introduction AMQP stands for Advanced Messaging Queuing Protocol. It is a standard for cross platform messaging. It is a wire protocol and aims to enable functional compatibility between clients (from various platforms) and messaging brokers. It is pretty comprehensive and aims to cover all distributed business scenarios. ... Full story

Simple Guide To Understand Resource Profile of Java Application

Simple Guide To Understand Resource Profile of Java Application
Synopsis This note describes a few simple commands on how to view the RAM and CPU usage of your Java process. It provides brief pointers on how to identify the influencing parameters and how to tweak it. Memory Java Heap The heap size of your Java process can be controlled by using a combination of –Xmx and –Xms. The heap size ... Full story
Page 1 of 612345...Last »
Copyright © 2010 ViralPatel.net. All rights reserved.