Top Posts in Python
Top Posts in Interview Questions
Inheritance in Java Example
Inheritance in java is one of the core concepts of Object Oriented Programming. Java Inheritance is used when we have is-a relationship between objects. Inheritance in Java is implemented using extends keyword. Inheritance in Java….
Regular Expression Phone Number validation in Java
Validating a phone number using regular expression is tricky because the phone number can be written in many formats and can have extensions also. For example, here are some of the common way of writing….
Java email validation – email regex java
Today we will look into java email validation program. Sometimes we have to validate email address and we can use email regex for that. In the last post, I explained about java regular expression in….
Regular Expression in Java – Java Regex Example
Welcome to Regular Expression in Java. It’s also called Regex in Java. When I started programming, java regular expression was a nightmare for me. This tutorial is aimed to help you master Regular Expression in….
Java Catch Multiple Exceptions, Rethrow Exception
In Java 7, catch block has been improved to handle multiple exceptions in a single catch block. If you are catching multiple exceptions and they have similar code, then using this feature will reduce code….
Java Resize Image
Today we will look into java resize image program. Recently I had to upload a lot of images to an FTP server but the images size were huge. Since I was going to use them….
Exception in thread main – Java
Being a Java Programmer, you must have seen exception in thread main sometimes while running a java program. Exception in thread main If you are using Java IDE like Eclipse or Netbeans to run a….
Underscores in Numeric Literals – Java 7 Feature
One of the Java 7 features is underscores in numeric literals. You can place underscores between digits of any numeric literal like int, byte, short, float, long, double. Using underscores in numeric literals will allow….
Binary Literals in Java – Java 7 Feature
Binary literals are new features in Java 7. As you all know that we can write integral types (byte, short, int, and long) in Binary and Hexadecimal formats. However, from Java 7 onwards we can….
How to fix maven Out of Memory issue
Recently I started working on a huge project that was using Maven as a build and deployment tool. When I tried to build the project, I got the ugly java.lang.OutOfMemoryError. To fix this, you will….