Home » Author Archives: Javin Paul (page 2)

Author Archives: Javin Paul

15 Java Socket Programming, Networking Interview Questions and Answers

software-development-2-logo

Networking and Socket Programming is one of the most important areas of Java programming language, especially for those programmers, who are working in client/server based applications. Knowledge of important protocols e.g. TCP and UDP in detail is very important, especially if you are, for example, in the business of writing high frequency trading applications, which communicate via FIX Protocol or ...

Read More »

How to Load Resources from Classpath in Java with Example

java-logo

Classpath in Java is not only used to load .class files, but also can be used to load resources e.g. properties file, images, icons, thumbnails, or any binary content. Java provides API to read these resources as InputStream or URL. Suppose, you have a properties file inside config folder of your project, and you want to load that properties file, ...

Read More »

Top 5 Java Performance Tuning Books – Best of Lot, Must read

java-logo

Why Java developer should read a book on Performance tuning? When I first faced this question long time back, I thought I will do it later, but I never get back to that for a long time. I realize my mistake of having lack of knowledge on performance measurement, tuning and finding bottleneck only when I faced serious performance and ...

Read More »

Top 50 Java Thread Interview Questions Answers for Freshers, Experienced Programmers

java-logo

You go to any Java interview, senior or junior, experience or freshers,  you are bound to see couple of questions from thread, concurrency and multi-threading. In fact this built-in concurrency support is one of the strongest point of Java programming language and helped it to gain popularity among enterprise world and programmers equally. Most of lucrative Java developer position demands ...

Read More »

How to use CopyOnWriteArraySet in Java with Example

java-logo

CopyOnWriteArraySet is little brother of CopyOnWriteArrayList class. These are special purpose collection classes which was added on JDK 1.5, along with their most popular cousin ConcurrentHashMap. They are part of concurrent collection framework and reside in java.util.concurrent package. CopyOnWriteArraySet is best suited as read-only collection whose size is small enough to copy if some mutative operation happens, for example you ...

Read More »

SynchronousQueue Example in Java – Producer Consumer Solution

java-logo

SynchronousQueue is special kind of BlockingQueue in which each insert operation must wait for a corresponding remove operation by another thread, and vice versa. When you call put() method on SynchronousQueue it blocks until another thread is there to take that element out of the Queue. Similarly, if a thread tries to remove an element and no element is currently ...

Read More »

Double Checked Locking on Singleton Class in Java

java-logo

Singleton class is quite common among Java developers, but it poses many challenges to junior developers. One of the key challenge they face is how to keep Singleton class as Singleton? i.e. how to prevent multiple instances of a Singleton due to whatever reasons. Double checked locking of Singleton is a way to ensure only one instance of Singleton class ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials