Java Programming Tips


5 Must Watch Videos for Java Programmers

One of the ways to improve your Java programming skills and knowledge is to listen to tech talks given by Java experts. I have found immense value in listening to these talks. Following selected videos on Java language cover efficient use of the Java language, tricky areas in Java core libraries, future of Java including […]

How to Find Method Execution Time in Java

Performance is an important technical feature to focus on when you write Java programs. One of the easiest ways to measure performance is to check the time taken by each method. Java provides a utility class System which is capable of returning the number of milliseconds elapsed since 1st January 1970. Using this we can […]

6 Must Read Books for Java Programmers

Java books enable programmers to learn the language and the best practices followed by seasoned programmers. It gives you the confidence that you understand the language and use it correctly in your programming projects. There are a large number of Java books available in the market. In this post, I will give an overview of […]

Date Manipulation Techniques in Java

Manipulating dates is a common requirement in Java programs. Usually you want to add or subtract a fixed number of days, months or years to a given date. In Java, this can be easily achieved using the java.util.Calendar class. Calendar class can also work with java.util.Date. The following program shows how date manipulation can be […]

Converting Milliseconds to Date in Java

Many Web Service specifications represent dates as number of milliseconds elapsed since 1st January 1970. This representation also enables us to store and transfer date values as long values. However when want to manipulate dates such as adding days or months, this long value is cumbersome to process. In such cases we want to work […]