Blog Archives

Java 7 fork and join tutorial with a diagram and an example

Q. How does java.util.concurrent.RecursiveTask work? A. It uses a single ForkJoin pool to execute tasks in parallel for both computing sum of numbers recursively and chunking (or breaking) them into chunks of say 3 or less as per the following example. … Read more ›...



Java 7: Top 8 new features with examples

There are several small new features and enhancements in Java 7. The major features and enhancements are in Java 8. Let’s look at the Java 7 new features. #1: string in switch statement: Output is: #2 Binary integral literals Output: #3: Underscores for better readability in numeric literals Output: #4:...



800+ Java Interview Q&As

Java & Big Data Tutorials

Top