Merge Sort in Java

Like QuickSort, Merge Sort also divide and conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. The merge() function is used for merging two halves. The merge(arr, left, mid, right) is key process that assumes that arr[left..mid] and arr[mid+1..right] are sorted and merges the two sorted sub-arrays into one.

Recursion in Java

In this post we will be seeing What is Recursion in Java. Recursion is a part of algorithms in which function calling itself until some base condition is not occur.

Relationship between Classes

As one starts learning any OOP(Object Oriented Programming) language be it C++, Java, Python etc, one of the concepts which most people fail to understand or go through it superficially is ‘Relationship between Classes’.

‘this’ Keyword in Java

In this post we’re going to see one of the most important and most useful topic i.e ‘this’ keyword in java. This is the topic of concern because as soon as one starts with OOP concept, ‘this’ keyword is encountered more often and people just ignore it considering it as a part of syntax. But as a matter of fact it has variety of applications from coding point of view which simplifies the code and makes it more understandable than before.