Skip to main content

DIFFRENCE BETWEEN JAVA AND C++

Java Programming

JAVA :-

1. Java is true Object oriented language.

2. Java does not support operator overloading.

3. It supports labels with loops and statement blocks .

4. Java does not have template classes as in C++.

5. Java compiled into byte code for the Java Virtual Machine. The source code is independent   on operating system.

6. Java does not support multiple inheritance of classes but it supports interface.

7. Runs in a protected virtual machine.

8 . Java does not support global variable. Every variable should declare in class.

9.  Java does not use pointer.

10. It Strictly enforces an object oriented Programming paradigm.


C++ :-

1. C++ is basically C with Object-oriented extension.

2. C++ supports operator overloading.

3. It supports go to statement.

4. C++ has template classes.

5. Source code can be written to be platform independent C++ typically compiled into machine code.

6. C++ supports multiple inheritance of classes.

7. Exposes low-level system facilities.

8. C++ support global variable. 

9. C++ uses pointer.

10. We have to use header file in C++.











Comments

Popular posts from this blog

Byte Code:

Java Programming Byte Code: It is the unique characteristic property of the Java programming language. It is something like a normal text file. Therefore, it cannot be affected by virus. It is an intermediate between a human readable source and machine readable source. Byte codes are plate form independent. Therefore, JVM is plate form dependent to make Java programming plate form indepdent.  

Difference between Class and Interface

Java Programming   *Difference between Class and Interface                                                  Class 1.  The members of a class can be constant or variables.  2. The class definition can contain code for each of its methods. That is, the methods can be    abstract or non-abstract. 3. It can be instantiated by declaring objects. 4. It can use various access specifier like public,private or protected.                                                Interface     1. The members of an interface are always declared as constant, i.e. their values are final.  2. The methods in an interface are abstract in nature, i.e., there is no code associated with  ...

OPERATING SYSTEM

1.  The term 'operating system'   means: a)  the way a computer operator   works. b)  conversion of high level languages into machine   code. c)  a set of programs which controls computer   working. d)  none of the   above. 2.  What is the name of the operating system that reads and reacts in terms of actual   time: a)   Batch   system b) Time sharing system c) Real   time   system d) all of the above. 3.  The primary job of the operating system of a computer is   to: a)   command   resources b) manage   resources c) be   user friendly d) only one of the   above. 4.  Multiprogramming   systems: a) are easier to develop than single programming systems. b) execute more jobs in same time period. c) are used only on large   mainframe   computers. d) all of the above 5.  Which of the following is not an a...