Category «Java»

Test your Java skills.

Even with many years of experience with programming in Java one cannot claim that he or she has mastered the language. What I found out with experience is that unless your job offers you diverse problems to solve, you are more likely to work on similar projects and hence may end up using the exact …

How to read properties file in Java.

Reading properties file in Java is much easier than you might have thought. Following example illustrates one simple way of reading properties from a properties file. Let’s say we need to read from myConfig.properties file. The properties file has following entries. Directory = C:/prodFiles/ NumberOfFiles = 25 Extension = java Here is the java code …

Java Utility for JDBC

Code re-usability is one of the many benefits of object oriented programming. For example, in Java if you need to perform email validation in different classes, rather than writing validation code in each class you can create email validation method in one class and then call that method from other classes. Now you have only …

Automatically Sort Vector Elements

Vector class in java.util package is very easy to use. You can add objects of any type in a vector. You don’t have to worry about declaring the size of the vector. You can just keep adding elements to your object and the vector will dynamically adjust the size. The vector will add elements one …

#1 Programming Language – Java

According to TIOBE Programming Community Index Java is still the #1 programming language. TIOBE Index gives an indication of the popularity of a programming language and is updated monthly. The ratings are calculated by counting hits of the most popular search engines. Ruby moved up from 13th to 10th position. Following is the list of …