Hi ,

First of all, I am sorry for the delay in the 4th edition of the "Java - Back to Basics" series. I was stuck in some personal work and didn't get time to send it. Here are the 5 topics in this edition.

  1. Java String Pool: Do you know that String Pool implements Flyweight design pattern? It's a very popular topic in Core Java Interviews. Go through this article to know everything about Java String Pool. You will be interested to know how many strings are getting created when using "new" operator.
  2. Java String Programs: This article lists 12 popular string programs implementations. The weekend is here, why not brush up your coding skills with these small yet interesting programs? First try to implement your own solution, then check the implementation provided by me. If you have better optimized code, please comment on the post.
  3. Java varargs: You must have seen some methods where the last argument have three dots (...). It's the way to implement variable arguments in Java Methods. Learn when to use varargs and what all benefits it has. Also, why you should never override varargs method.
  4. ConcurrentModificationException: Java Iterator is fail-fast. Any change in the underlying collection throws ConcurrentModificationException. This post covers some scenarios where this exception may come and how to write better code to avoid it.
  5. Exception Handling in Java: Learn everything about exception handling in Java. How and when to create custom exceptions. You will also learn about Java 7 Automatic Resource Management feature with the catch block enhancement. Finally, read the best practices associated with exception handling and try to use it in your project. I believe that exception handling is mostly overlooked but if not done properly, code gets messy.

Earlier emails in this series:

Thanks,
Pankaj


Copyright © 2019 JournalDev, All rights reserved.

View web version of this email.

You are receiving this email because you subscribed to JournalDev Newsletter. If you don't want to hear from us, you can Unsubscribe here.