Blog Archives

03: jvisualvm to debug deadlocks in Java applications

This extends JConsole for debugging deadlocks in Java applications, using jvisualvm that gets shipped with your JDK. Step 1: Java code that creates a dead lock situation by a) thread-0 holding on to lock1 and waiting for the lock2, b) and thread-1 holding on to lock2 and waiting for the…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in Concurrency, Java Debugging, jvisualvm profiling, member-paid

JConsole for debugging deadlocks in Java applications

This is another debugging concurrency issues tutorial following on Debugging Java thread-safety, multi-threading, or concurrency issues tutorial. Step 1: Java code that creates a dead lock situation by a) thread-0 holding on to lock1 and waiting for the lock2, b) and thread-1 holding on to lock2 and waiting for the…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in Concurrency, Java Debugging, member-paid

03: ♦ 5 Java multithreading scenarios interview questions answered

This extends Q1. Can you give some scenarios where you had used multi-threading in Java applications? Q2. Can you give some scenarios where you used the synchronized keyword in Java? A2. Firstly, you need to assume that your code is always going to be accessed by multiple threads. Scenario 1:…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in Concurrency, member-paid, Multithreading
Tags:

Dealing with concurrent modifications in Java

There are scenarios where you need to deal with concurrent modifications in Java. Here are 2 scenarios that I can currently think of. Scenario 1: Looping through a list of items and removing an item in the list could lead to “ConcurrentModificationException“. Here is an example. Code that throws an…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in Concurrency, Judging Experience Interview Q&A, member-paid

♥♦ 5 Ways to debug Java thread-safety issues

Tutorial style debugging of Java thread safety issues. Debugging concurrency issues are not easy. #1 List all possible causes and add extensive log statements and write test cases to prove or disprove your theories. The log statements will have something like

#2 Using your IDE debugging capability by setting

Read more ›

Posted in Concurrency, Debugging Tutorial, Java Debugging, Java Key Area Essentials

5 Java Concurrency interview Q&A

Concurrency is very important in any modern system, and this is one topic many software engineers struggle to have a good grasp. The complexity in concurrency programming stems from the fact that the threads often need to operate on the common data. Each thread has its own sequence of execution,…...

Members Only Content

This content is for the members with any one of the following paid subscriptions:

30-Day-Java-JEE-Career-Training, 90-Day-Java-JEE-Career-Training, 180-Day-Java-JEE-Career-Training, 365-Day-Java-JEE-Career-Training, 60-Day-Java-JEE-Career-Training and 2-Year-Java-JEE-Career-Training

Want to evaluate the quality of the contents to see if they will add value to you?

Click Here and check the contents with Try.

Log In | Register
Posted in Concurrency, Java Key Area Essentials, member-paid
Tags:
1100+ paid subscribers. Reviews | Free Contents. Monthly 260K+ views & 40k+ visitors. 9 tips to earn more.

Java Developer Training – 800+ Q&As ♥Free|♦FAQ (Mouse Hover for Tooltip)

open all | close all

200+ Java Developer Job Interview FAQs

open all | close all

16 Java Programmer Key Areas to be a top-notch

open all | close all

80+ Java Tutorials – Step by step

open all | close all

100+ Java Developer Coding Exercises

open all | close all

How good are your …..Java job hunting & career fast-tracking skills?

open all | close all