# Best Practice To Implement Equals & HashCode Methods In Java

This post talks about best practice to implement equals and hashCode method in java by using utility classes provided by Java 7 and Guava – Google Code for Java. Continue reading

This post talks about best practice to implement equals and hashCode method in java by using utility classes provided by Java 7 and Guava – Google Code for Java. Continue reading

A quick tutorial on JAXB with a working example and the source code. Continue reading

How to represent binary numbers in java . How to convert integer to binary in java Continue reading

Here is the code snippet to show how Scanner can be used to take input from user in Java. Continue reading

JOptionPane can be used for taking the user input in java. Beauty of using this method is that it provides a graphical interface for taking the user input. Continue reading

How to reverse digits in a number in Java – How to find if a number is a palindrome in java Continue reading

In java a number can be identified as odd or even by using modulo operator i.e. “%”. The modulo operator gives the remainder of a division operation, for instance the result of 5 % 3 would be 2. Below is the code snippet of this algorithm in java: Continue reading

In a Fibonacci sequence, a number is generated by adding previous two numbers, with first two numbers as 0 and 1. Thus, a[i] is calculated as a sum of a[i-1] and a[i-2]. Below is the code fragment to generate Fibonacci Continue reading

In a Fibonacci sequence, a number is generated by adding previous two numbers, with first two numbers as 0 and 1. Thus, a[i] is calculated as a sum of a[i-1] and a[i-2]. Below is the code fragment to generate Fibonacci Sequence in Java, iteratively: Continue reading

Applications with front end written in Java technology and back end as SQL makes an excellent combination. Now, to connect front end to database i.e. to connect to SQL database from Java, below is the code snippet: Continue reading