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 …
Default Keyword in Java
This tutorial explains how to use default keyword in Java and explains with suitable examples. Default Keyword The following are the scenarios where default keyword can be used in Java : Can optionally be used in switch statement. Can be used to declare default value in Java annotation. From Java 8 on wards ,can be …
Java 9 : Use Process API to Get Process Information
With every one focused on Java 8, let me take you through some of the features in Java 9. As Java 9 is being continuously under development features discussed here might change before the final release of JDK 9. Few links to start with: In this post I am using Java 9 Build b75 downloaded …
Java 8 Date Time API – DateTimeFormatterBuilder Example
Along with lambda expression, virtual methods, streams and many other nice features, Java 8 has also updated a new Date and Time API which is maintained under the JSR-310. One of the greatest on this new API is that all the date and time related APIs are unified under the same package java.time. In my …
Java InvalidPropertiesFormatException Example
When we are using the collection of properties, if the input does not conform to the valid XML document type with the appropriate properties specification at that time an exception is thrown called InvalidPropertiesFormatException, to indicate operation could not be completed. This example explains about that exception. Java InvalidPropertiesFormatException Class Declaration In the above declaration, …
Eclipse Tips : How To Configure MySql In Eclipse
This tutorial explains the step-by-step guide for configuring the database connection within your Eclipse environment. It is one of the advantage for the developer to check the database operations within Eclipse itself instead of checking with external tool. However, this would not have the advanced database operations, but will be handy for checking the updated …
javax.naming.NameNotFoundException: Name is not bound in this Context Exception
When you are working with the JNDI look up, quite often you would encounter the javax.naming.NameNotFoundException thrown by your application. JNDI names are registered in the registery, if you try to access the name which is not registered or by the wrong format, you would get the javax.naming.NameNotFoundException. Lets look at the below code for …
How To Split And Merge Files Using Java
When transferring files through network or uploading to internet, it is common that file size could be the real factor. In those scenarios, splitting the file will solve your problem. The files will be splitted into small parts of chunks, that will be merged into a single file at the destination. This example shows how …




