Vous êtes sur la page 1sur 8

CORE JAVA & OVERVIEW OF J2EE

CONDUCTED BY

Madhur Dwivedi
Madhur Dwivedi

OOPS

It is an approach that provides a way of modularization of programs by creating partitioned memory area for data and functions that can be used as templates for creating copies of such modules when required
Madhur Dwivedi

Difference between
Procedure Oriented Programming & Object Oriented Programming
Madhur Dwivedi

POP

OOP

importance is given to the sequence of things to be done larger programs are divided into functions most functions share global data

importance is given to the data larger programs are divided into objects mostly the data is private and only functions inside the object can access the data follows a bottom up approach

follows a top down approach in problem solving

Madhur Dwivedi

Difference between
C++ & JAVA
Madhur Dwivedi

C++

JAVA

supports typedefs, defines, or a preprocessor supports not only classes but also structures or unions. all classes are completely unrelated to each other There is no concept of interface

does not support typedefs, defines, or a preprocessor supports classes, but does not support structures or unions all classes in Java ultimately inherit from the Object class we can create interface which is equivalent to an abstract base class containing only method declarations and constants.

Madhur Dwivedi

C++

JAVA

supports multiple inheritance supports operator overloading supports pointers all stand-alone C++ programs require a function named main and can have numerous other functions, including both standalone functions, and functions, which are members of a class

does not support multiple inheritance does not support operator overloading does not support pointers there are no stand-alone functions, global functions and global data in Java

Madhur Dwivedi

C++

JAVA

requires the redeclaration of static data members outside the class use destructors to free the memory space used in the program

does not require to redeclare static members outside the class no destructors in Java. Unused memory is returned to the O/S by way of automatic garbage collection does not support supports templates templates default arguments are we can pass default not supported by Java arguments in functions multithreading is a cannot implement multithreading Madhur Dwivedistandard feature of the programmatically Java language

Vous aimerez peut-être aussi