Explain How Java Differs From ‘C’ & ‘C++’?

Java & ‘C’ :

®
‘C’ is a procedure oriented language is follow top down approach.

Java is object oriented language is follows bottom up approach.

®
Java does not support:

Key words ® sizeof & typedef.

Data types ® Struct is union.

Modified keywords ® auto, extern, register, signed is unsigned.

®
Java does not support pointers.

®
Java does not support preprocessors directives like # include, # define.

®
Java adds many features required for object oriented programming.

Java & C++  :

®
Java is true object oriented programming.

®
Java does not support operator overloading.

®
Java does not have template classes.

®
Java does not support multiple inheritance.

®
Java does not support global variables.

®
Java does not support destructor.

®
There is no heater files in Java.

java vs c&c++

Overlapping of ‘C’, ‘C++’ & Java




Related

JAVA PROGRAM FOR LINEAR SEARCH

import java.io.*; class Search {             public static void main(String args[ ])throws IOException       ...

JAVA PROGRAM FOR PRIME NUMBERS UPTO GIVEN RANGE

import java.io.*; class Prime {             public static void main(String args[ ])throws  IOException      ...

Symbolic Constants in Java?

Constants  may  appear  repeatedly in number  of places  in the program. Constant  values are assigned  to some names  at   the  beginning ...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item