Home Arts & LiteratureLanguages Subscribe to RSS

What Is The Difference Between C, C++ And Java Languages?

Answer Question

2 Answers - Sort by: Date | Rating

    Programming languages are of two types, namely;
    (a). Modular or function-based Programming Language
    (b). Object-oriented Programming Language.
    (a). Modular Programming Language: A programming language is called Modular if it supports methods. A method or a function is a block or section of code that is logically associated with each other. This section or block of code has got its specific or particular name. Whenever a programmer wants to execute the specific block of code s/he used the name of that particular section or block of code.  
    (b). Object-oriented Programming Language: A programming language is called Object oriented if it has the support to create or develop classes in it. Class is an abstraction of a real-world object and is used to define the characteristics, qualities and actions performed by the object for which the class is written. For example, a teacher is an object and if we want to write the class for a teacher then it'll include the characteristics, specifications and actions perform by a teacher.
    C is a modular programming language and doesn't have object-oriented features in it.  
    C++ supports both modular and object-oriented features.
    Java is a completely object-oriented language as it doesn't allow modular programming. In Java every object has to be defined in terms of a class.
    0 0

    Blues  

    answered 3 years ago

      I'm Chinese, My English is not good. I think the main difference between C or C++ and Java in Object-oriented. In Language C or C++, we can extend one more classes. There are many problems from the method of extending, like the sequence of initializing the class before using it and the sequence of destroying the class. It's very hard for the beginner. So Java doesn't allow extending from more one class. On the other side , there is the same in C++ and Java.
      0 0

      Ssfboy  

      answered 3 years ago

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International