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 …
Java
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 …
EOFException Example in Java
EOFException in Java is thrown when end of file is reached unexpectedly while processing the input. These exceptions are thrown while working the DataInputStream, ObjectInputStream and RandomAccessFile classes. All these classes are using one of the stream classes like FileInputStream for reading the data. When there is no data available in the stream by DataInputStream …
JVM Memory Management
Introduction to Java Memory Management In this article I am going to explain more about the JVM memory management inside Java Virtual Machine (JVM). If you are a Java developer, understanding the Java memory management inside JVM will be much helpful on investigating performance issues related to memory leak, garbage collection, etc. which are critical …