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

Concept of OOPS

Java Programming This are the basic concept of OOPS. 1. Object 2. Class 3. Data abstraction 4. Data encapsulation 5. Inheritance 6. Polymorphism 7. Dynamic binding Java Classes/Objects Java is an object-oriented programming language. Everything in Java is associated with classes and objects, along with its attributes and methods. For example: in real life, a car is an object. The car has  attributes , such as weight and color, and  methods , such as drive and brake. A Class is like an object constructor, or a "blueprint" for creating objects. Create a Class To create a class, use the keyword  Myclass.java Create an Object In Java, an object is created from a class. We have already created the class named  MyClass , so now we can use this to create objects. To create an object of  MyClass , specify the class name, followed by the object name, and use the keyword  new : Example=> public class Myclass{ int x=10;...

DBMS LEARNING SHEET

                                                            Types of DATA Structured data are facts concerning objects and events. The most important structured data are numeric, character, and dates. Structured data are stored in tabular form. Unstructured data are multimedia data such as documents, photographs, maps, images, sound, and video clips. Unstructured data are most commonly found on Web servers and Web-enabled databases. Database A database is a collection of data that is organised in such a way that it provides efficient retrieval of desired information. This collected data could be in any format like printed, audio, electronic and graphic. Consider an example of an address book, it is also a database that provides information of personal contacts of persons. DBMS A Database Mana...
Java Programming