Merge Sort in Java with Example

Merge sort In computer science, merge sort (also commonly spelled mergesort) is an O(n log n) comparison-based sorting algorithm. Most implementations produce a stable sort, which means that the implementation preserves the input order of equal elements in the sorted output. Mergesort is a divide and conquer algorithm. Divide and conquer algorithms divide the original data into smaller sets of dataContinue reading “Merge Sort in Java with Example”

Understanding ConcurrentHashMap Collections in Java

ConcurrentHashMap is a Map implementation like HashMap and Hashtable, with additional support for concurrency features: Unlike Hastable or synchronizedMap which locks the entire map exclusively to gain thread-safety feature, ConcurrentHashMap allows concurrent writer and reader threads. That means it allows some threads to modify the map and other threads to read values from the map at the same time, while Hashtable or synchronizedMap allows only one thread to work on theContinue reading “Understanding ConcurrentHashMap Collections in Java”

Treemap in java collections with examples

TreeMap is Red-Black tree based NavigableMap implementation. It is sorted according to the natural ordering of its keys. The TreeMap in Java is used to implement Map interface and NavigableMap along with the Abstract Class. The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creationContinue reading “Treemap in java collections with examples”

What Exactly Java Applet is and Its Architecture

What is Applet?An applet is a Java program that can be embedded into a web page. It runs inside the web browser and works at client side. An applet is embedded in an HTML page using the APPLET or OBJECT tag and hosted on a web server. For more additional info Java Online Course AppletsContinue reading “What Exactly Java Applet is and Its Architecture”

Java hashcode() with example

Java hashCode(): Java Object hashCode() is a native method and returns the integer hash code value of the object. The general contract of hashCode() method is: Multiple invocations of hashCode() should return the same integer value, unless the object property is modified that is being used in the equals() method. An object hash code valueContinue reading “Java hashcode() with example”

Introduce Yourself (Example Post)

This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right. You’re going to publish a post today. Don’t worry about how your blog looks. Don’t worry if you haven’t given it a name yet, or you’re feeling overwhelmed. Just click theContinue reading “Introduce Yourself (Example Post)”

Design a site like this with WordPress.com
Get started