Category Archives: Java

12 Best Java Certifications to Boost Your Career

Java is one of the most widely used programming languages. It is a powerful, high-level, general-purpose, pure object-oriented programming language used for developing mobile applications, web-based applications, and much more. Oracle has been in charge of the Java platform’s development since it acquired Sun Microsystems (the company that developed Java) in January 2010. As a result, they’ve created… Read More »

Best Java Testing Tools to Use

Java is one of the most popular programming languages that allow you to create a wide variety of web apps ranging from fairly basic to highly feature-rich applications, however, Java apps come with certain risks. The applications developed with Java can manage heavy loads without compromising functionality or performance. In general, the most significant reason behind the stability… Read More »

How to format Java date using SimpleDateFormat

Introduction Strings are very easy to manipulate, and the String class itself provides many methods to play with data types and use them in different ways. We can convert Java date into String using the SimpleDateFormat class that provides many different formats. We can represent the date in various formats like mm-dd-yy or dd-mm-yyyy etc. How to format… Read More »

How to determine Java version from Program

Introduction Java has many versions so far, and with each version, some significant features are released. There are several differences between the APIs and how the code is written from version to version. That’s why to use some of the functionalities, we need to know which version our codebase is. For example, unboxing/boxing was introduced only in Java5,… Read More »

How to use static imports in Java?

Introduction My mentor always told me that it is a bad practice to use System.out.print statement, and we should rather use log4j to write messages to log files. System.out prints messages to the console. However, while we do our debugging and testing, especially on IDE, it is easy to add System.out statements. Eclipse IDE has a shortcut –… Read More »

How to open a file using Java FileReader

Introduction Both FileReader and BufferedReader are used to read data from a text file and display them. We will see how to open a file and then read text from it using simple Java methods. Be sure to be familiar with the Java while loop and for loop to appreciate the below examples fully. How to open a… Read More »