It causes all the calling threads to wait until the current thread (joined thread) is terminated or completes its task.
Output:
0 1 2 3 4 0 0 1 1 2 2 3 3 4 4
PostgreSQL
Solr
MongoDB
Gimp
Verilog
Teradata
PhoneGap
Gmail
Vue.js
PLC
Illustrator
Aptitude
Reasoning
Verbal A.
Interview
Company
AI
AWS
Selenium
Cloud
Hadoop
ReactJS
D. Science
Angular 7
Blockchain
Git
ML
DevOps
DBMS
DS
DAA
OS
C. Network
Compiler D.
COA
D. Math.
E. Hacking
C. Graphics
Software E.
Web Tech.
Cyber Sec.
Automata
C
C++
Java
.Net
Python
Programs
Control S.
Data Mining