What is the difference between Array and ArrayList is the quite common question for the Java interview and for the beginners who are learning Java programming. I have started writing the Java best practices series, this is one of the post for clearing the air on misconception about popular Java classes Array and ArrayList. 1. Flexible …
Java
Maven : updatePolicy Configuration in Settings XML file
One of the most common thing when working with dependency management is how often our local repository has to sync up with the remote repository. Maven has updatePolicy settings for specifying the frequency to check the updates in the repository. Most of the times this value is left blank in the configuration files, the default value is …
How To Use Source and Target Parameter in Java Compiler
If you are a Java programmer, then one of the common question comes into mind is How do I compile for compatibility with older versions of Java?. When you run your Java program with an older version of the Java runtime environment, you may get the following Java exception if you have not compiled with the right version of …
Difference Between Abstract Class and Interface in Java
One of the basic Java interview question is what is the difference between abstract class and interface. If you are a beginner in Java, you can not avoid this question in any Java interview to test your knowledge on Java OOPs concepts. In this short tutorial I will write down the difference between abstract class …
Top 11 Java Exception Best Practices
In my previous tutorial about Java exceptions, I have covered suppressed exceptions and java exception handling. It is one of the important coding practice to do efficient and foolproof exception handling for your projects. To achieve that, you must have a good knowledge on best practices used for exception. This tutorial will highlight the most significant …
java.net.ConnectException Example
java.net.ConnectException is thrown when client socket is not able to connect to the server socket. java.net.ConnectException is subclass of java.net.SocketException. In this short tutorial, I am going to write a simple program for client socket that sends message to the server socket. Then server socket process the message and prints it. When there is a …
Difference Between Load Testing and Stress Testing
Load testing and stress testing are different testing activity that are often confused among the developers. Both are measuring the performance of the application but the difference is that they measure at different conditions. In simple words, load testing tests with large amount of users but stress testing tests with too many users, too much …
JMeter Tutorial
JMeter is a software that is very useful for load test, performance test and various other testing requirements of your application. This tool is developed and maintained by Apache Software Foundation as open source project. In most of the projects, JMeter tool is primarily used for load test the web applications. It is a simple …