Difference between Synchronized & Volatile in Java

volatile keyword in Java is field modifier while synchronized modifies code blocks and methods. synchronized acquires and releases locks on entire code block or method

Continue reading