Question 1.--> What is JVM ?
Question 2.--> What are the concepts of OOPS(Object Oriented Programming) ?
Answer 2.--> There are basically five concepts of OOPS at ground level but we will see all the 11 concepts of oops.
Those eleven concepts consists of :
The details of each and every concept described as:
Answer 1.--> JVM refers to Java Virtual Machine which is a computer program that converts the source code written in java on any operating system to Byte code which a .class file that can run on any operating system according to the flavour of JVM installed on machine.This constitutes the feature of Platform Independance for Java while JVM is platform dependent.
Question 2.--> What are the concepts of OOPS(Object Oriented Programming) ?
Answer 2.--> There are basically five concepts of OOPS at ground level but we will see all the 11 concepts of oops.
Those eleven concepts consists of :
- Classes and Objects.
- Abstraction.
- Polymorphism.
- Inheritance.
- Encapsulation.
- Modularity.
- Delegation.
- Message Passing.
- Information Hiding.
- Association.
- Genericity.
The details of each and every concept described as:
11.) Classes and Objects
A class is
simply a representation of a type of object. It is the blueprint/ plan/ template that
describe the details of an object. A class
is the blueprint from which the individual objects are created.
Class is
composed of three things: a name, attributes, and operations.
An object can be considered a "thing"
that can perform a set of related activities. The
set of activities that the object performs defines the object's behaviour. For
example, the hand can grip something or a Student (object)
can give the name or address.
In pure OOPS terms an
object is an instance of a class.
No comments:
Post a Comment