Java is a high level, robust, object-oriented and secure programming language.

CODEs



OOPs Concept

  1. Class - basic template / blueprint / object constructor for creating objects, user defined var. , collection of var. and methods.
  2. Object - basic run-time entity, instance of class
  3. Inheritance - properties of one class can be inherited into others.
  4. Abstraction - displays only the information needed and hides the unnecessary information.
  5. Encapsulation - wrapping data and function/methods into single unit/class.
  6. Polymorphism - ability to take more than one form.

Difference between JAVA and C++