Difference between ConcurrentHashMap and HashMap

ConcurrentHashMap HashMap Thread-safe i.e. synchronized Non-synchronized Low on performance because it is synchronized because sometimes threads have to wait High on performance because it is non-synchronized and any threads can…

How To Convert Binary To Decimal In Java

There are a multiple way to convert binary to decimal in Java: Convert Binary To Decimal In Java Interger.parseInt() method: This is really one of the simplest way in java…

Bubble Sort in Java

We will create Java program which will sort Java array, Bubble sort is one of the simplest algorithm. Basically In bubble sort we travel through all the elements starting from…

Python – Data Types

Python Data Types defines the different types of a variable. Since everything is an object in Python, data types are literally classes and also the variables are instances of the…

Python Variables

1. Creating variables In Python 1.1. Simple assignment As python is interpreter language, so here there is no such keyword for declaring a variable. The interpreter allocate memory at runtime…

Python Comments:

Single Line Comments in Python: Python has commenting capability for the purpose of in-code documentation.Comments can be used to explain Python code.Comments are often wont to make the code more…