|
|
|
Java Tips and Examples
|
Interface in java with example
We are going to discuss about Interface in Java. Interface is blueprint of a class. Interface is a collection of abstract methods. Interface has only static constant and abstract method. We can only implement a class and extended it by other interface.
View Rating |
|
|
Java Tips and Examples
|
Inheritance in Java with example
Here we are going to discuss Inheritance in Java with a simple example. Inheritance is a Object Oriented Programming concepts, which allows to extend a superclass/parentclass to a subclass. Interface in java is used for class inheritance and interface inheritance. extend and implement keywords are used for inheritance in Java.
View Rating |
|
|
Java Tips and Examples
|
Java XOR Operator
Bitwise XOR (exclusive or) "^" is a Java operator that provides the answer 1 if both of the bits in its operands are different. But if both of the bits are same then the XOR operator gives the result 0.
View Rating |
|
|
Java Tips and Examples
|
Quick Sort in Java
Quick sort in Java is used to sort integer values of an array. It is a comparison sort. Quick sort is one of the fastest and simplest sorting algorithm in comparison to other sorting algorithms like bubble sort, insertion sort, heap sort, etc.
View Rating |
|
|
Java Tips and Examples
|
Merge Sort Java
Merge Sort in Java is used to sort integer values of an array. There are many methods to sort Java like bubble sort, insertion sort, selection sort, etc. In Merge sort unsorted values are divided into two equal parts, then they are repeatedly merged till the final list is in sorted order completely.
View Rating |
|
|