Java

Common Mistakes in Exception Handling

Exception is disruption to a normal execution flow of a Java (in general any) program. This disruption can be because of a runtime problem e.g. data problem, initialization problem, etc. or because of a failing business condition. Java is capable of handling all such undesired scenarios elegantly. But when it comes to a developer to use these java generated exceptions to provide enough information to different stakeholders, then few mistakes occur.

Java

Role of Frameworks in Architecture Definition

If one wants to select an important technology trend in Java world over past few years, then it has to be the growth and wide acceptance of open source frameworks in application development. If we look back, there are examples of frameworks which got wiped out with time, also there are examples of frameworks which [...]

Java

Eclipse Features to Improve Java Productivity

Eclipse IDE provides many features to help a developer in development activities. Help to write code, integrate with servers, deployment, quality check and what not. In this article, I am consolidating those features which help us in improving productivity. Here I have used Eclipse Galileo and for unit test generation it is JUnit 4.4.

Java

What is Difference Between An Architect and A Designer?

Some of you might say that there is a thin line between these two designations, while some might be able to differentiate clearly saying that comparing these two is comparing apples and oranges. But it is true that these two personalities work under same roof to achieve same goal of delivering a project, more appropriately [...]

Java

Long Time-stamp to Date Conversion in Java

I wanted to convert a timestamp from long value to something human understandable date. I explored multiple ways of doing it with a couple of controlling parameters. Sharing it as it might be useful to you.

Java

Investigating java.lang.OutOfMemoryError

Mostly we do not encounter this error in preliminary stages of application development. Sometimes functional testing reveals this error, but many times it is revealed during performance testing. It is not so annoying when it occurs before we push the application into production, but the real pain starts when we are hit by this error [...]

Java

When to Say NO to the Cup of Coffee?

Java, a portable, multitasking, object oriented language. It has captured a considerable share of market so far. We also have huge number of products developed using this language to provide need based features to applications using it. It has also come long way since it’s birth. We have been using this language in many applications; [...]

Java

Code Generation in Application Development

Till date there would have been hundreds of thousands of lines of code written in each programming language. Every new application getting developed adds thousands of lines of code to this code pool. But this code is not for free, it involves huge amount of money. There are many techniques to reduce the application development [...]

Java

What We Mostly Use in Java

Ok, I haven’t written any tool to scan entire worlds Java code to find out these syntax elements. But definitely, all of us have gone through thousands of lines of good and bad code since we learned this language – Java. Not only me but all those who call themselves as Java developer have traveled [...]

Java

Google Collection Types

Google Collections provide additional collection types to offer additional but common features. These advanced types are derived from Java Collection types, hence they continue to offer the features of underlying Java type. In addition to that there are many additional features encapsulated in these new types, so that we can directly use them instead of [...]

Java