Multi-threading programming is conceptual paradigm for programming where we divide programs into two or more process which can run in parallel. With interactive network programs, we will find that there are many problems best solved concurrently. Before going see code examples we will get to know

Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, and abstraction. Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods