Monday, 2 October 2017

COMPARISON BETWEEN PPA AND OOPs.


PPA programming approach have several disadvantages. 


                                           

S.no
PARAMETERS
PROCEDURAL PROGRAMMING APPROACH
OBJECT ORIENTED PROGRAMMING
1.
Focus             
It only focuses on procedure like in c language,  cobol and fortan.
It focuses on data or we can say object rather than procedure.
2.
Approach
POP always follow top-down approach.
OOPs follows bottom-up approach like in java and other programming language.
3.
Access Specifiers
Does not have any access models.
It has many types of  access models like java, c++.
4.
Decomposition of code.
Large programs  are divided into functions.
Programs are decomposed into objects.
5.
Data Hiding
Data is not hidden because there is no concept of data abstraction.
Data is hidden.
6.
Security
PPA is not so secured because data is moving openly.
OOPs is secured because data is not moving freely.
7.
Code lengthyness.
Whenever we write a program in PPA code is very very lengthy.
Code is distributed in diffe


Difference Between C C++ and java.



S.NO
PARAMETERS
C
C++
JAVA
1.
Approach
It follows PPA approach.
It also follows PPA approach as well as OOPs.
It follows OOPs only.
2.
Developer and Dateof invention.
Dennis Ritchie,1972
Bjarne Stroustrup,1980.
James Gosling and team,1995.
3.
Language Level
Middle level.
Middle level
High Level
4.
Platform Dependencies
C is platform dependent.
C++ is also platform dependent.
Java is platform independent.
5.
Data Security.
Data is not secured.
Data security is little more than C++.
Java is secured.
6.
Acess specifier
Not present in C.
Present in C++.
Present in java also.
7.
Robustness.
Not much robust.
Because of Exception handling, it is robust.
Because of Exception handling and Automatic garbage collector, it is much robust than any language.


3 comments:

Explanation of first program of Java

CREATING A SIMPLE JAVA PROGRAM In this page we try to understand java program, and this helps us lot more in building further java progr...