Core Java

It contains blogs of core Java.

Encapsulation vs Abstraction

What is Encapsulation? Encapsulation is the process of putting something into a capsule. In programming, Encapsulation represents the grouping of logically related data and operations into blocks called classes. In real life context, a company can encapsulate its stakeholders into the following groups according to their functionalities: Employee, Product, Customer, Supplier, Share holder etc. Encapsulation […]

Portability vs Platform Independency

What is Portability? Portability is the ability to be easily carried or moved. In programming, Portability represents the ability of software to be transferred from one platform to another. Almost all high level languages such as C, C++, Java etc are portable i.e. Their applications can be executed on all platforms. How a language is […]

Why main() method is static in Java?

Why main() method is static in Java? It is a very common Java question that baffles new learners as well as experienced programmers. Very few people know the correct answer of this question. In this post, I will share the real concept behind it. Everything that we define in a class is called a member […]