Differences in Language Java And C++ Program
The difference between the Java programming language with C++
programming language can be traced from the system of inheritance,
because they have a different design goals.
C++ is especially designed for system programming, developed the C programming language for programming languages procedures designed to run the program more efficiently, in C++ has added support for object-oriented programs with static type, except in terms of control, including resource management and generic programming, in particular also added "standard library" including generic algorithms and program content.
Java was originally designed to support computer networks. Java virtual machine is believed to be safe and very easy. Java with extensive design library to provide a complete platform abstraction. Java is an object oriented programming language that uses static type syntax similar to the C programming language, but it is not compatible with it. Java was designed from scratch, with the goal of easy to use and accessible to a wider audience.
C++ is especially designed for system programming, developed the C programming language for programming languages procedures designed to run the program more efficiently, in C++ has added support for object-oriented programs with static type, except in terms of control, including resource management and generic programming, in particular also added "standard library" including generic algorithms and program content.
Java was originally designed to support computer networks. Java virtual machine is believed to be safe and very easy. Java with extensive design library to provide a complete platform abstraction. Java is an object oriented programming language that uses static type syntax similar to the C programming language, but it is not compatible with it. Java was designed from scratch, with the goal of easy to use and accessible to a wider audience.
Its Development Differences
Differences in the development goals of the Java programming language with the language C++, resulting in differences in principles and design differences between each of these programming languages.
C++
- Less is more compatible with the source language (source code) in C.
- System allows direct calls to native libraries (native system libraries).
- Run facility security system is low.
- Supports arithmetic unregistered.
- There is no limit or size standards for all types of numeric data. Just given the relative size.
- Parameters that can be used by value, pointer or reference.
- Memory settings through a third party that provides garbage collection (garbage collection).
- C++ Standard Library has more settings and functions of the Java standard library.
Java
- Designed from scratch is not compatible with any programming language.
- Calls through the Java Native Interface.
- Run with a secure virtual machine (protected).
- Does not support arithmetic unregistered.
- Restrictions stardard and sizes for all types of data.
- Parameters used always with value, even if the object is accessible through references will be converted to value first, not directly from the object.
- Garbage collection automatically, although the foregoing can be set manually by the programmer.
- Java Standard Library develop according to their respective release / version.
- Single inheritance, when it takes a plural inheritance can only be through the interface.
C++ programming language is very tough but it is complicated, while the Java programming language designed more modest (and therefore more easily learned).
Excellence Java
Which
makes Java different from other programming languages is that Java
has several advantages as are absolutely be made in consideration of
using this Java language. Here are some of the advantages of Java:
- Multiplatform. The main advantages of Java is able to run on multiple platforms / operating system computer, in accordance with the principle of write once, run anywhere. With these advantages programmers simply write a Java program and compiled (converted, from a language understood by humans into machine language / bytecode) once and then the result can be run over multiple platforms without any changes. This will allow a java-based program done on the Linux operating system but run well on Microsoft Windows. Supported platforms today are Microsoft Windows, Linux, Mac OSdan Sun Solaris. The cause of each operating system uses its own program (which can be downloaded from Java) to convert into bytecode.
- OOP (Object Oriented Programming - Object Oriented Programmers) which means that all the aspects contained in Java is Object. Java is a programming language based purely oebjek. All types of data derived from a base class called Object. It is very easy for programmers to design, create, develop and allocate fault a Java program on the basis of a rapid, precise, easy and organized. This excess makes the Java programming language as one of the easiest, even for the advanced functions such as communication between the computer though.
- The Complete Class Libraries, Java is famous with a complete library / library (a collection of programs that are included in the java programming) is very easy to use by programmers to build applications. Completeness of these libraries coupled with the existence of a large community of Java that continuously create new libraries to cover all application development needs.
- C++ style, syntax as the programming language [C++] so it attracts a lot of C++ programmers to move to Java. Currently Java users are very many, most are C++ programmers moving to Java. Universities in the United States also began to migrate to teach Java to the new students because it is more easily understood by students and can be useful also for those who are not majoring in computer.
- Automatic garbage collection, has a facility setting memory usage so that the programmer does not need to perform direct memory settings (as in C++ language is widely used)
Disadvantages Java Programming
- Java Has a speed of less than C++.
- J2ME implementation is not global. Eg J2ME for Motorola with J2ME for Sony Ericson not the same. Different again J2ME for Nokia. Each product always has a separate module that is considered odd and the application must be compiled with a variety of different modules. A platform so that others are not compatible.
- Java is easy decompilation. Decompilation is the reverse of the code so into the source code. This is possible because the code is Java bytecode so that saves a lot of attributes of high-level languages, such as the names of classes, methods, and data types. The same thing happened to Microsoft.NET.Platform, Thus, the algorithm used the program would be more difficult to hide and easily hijacked / direverse-engineer.
- Use a lot of memory. The use of memory for Java-based program is much larger than the previous generation of high-level languages such as C / C ++ and Pascal (more specifically, Delphi and Object Pascal).
- Program created by this language more slowly than programs created with other languages such as C or C ++.
Excellence program C ++
- His language ANSI standard can be used across multiple platforms
- Free program when compared with the same program made in other languages, relatively quickly.
- The Code in C ++ with the portability and flexibility for all kinds of computers.
- Language C ++ is available in almost all types of computers.
- Program-code is reusable, so it can be reused in other projects by simply using the library and header files.
- Language C ++ provides few key words (there are only 48 keywords).
- Support Library functions and classes which many thereby enabling the manufacture of macro applications.
- C++ Is a language that is structured, it will become much support OOP.
- C++ programming languages, including mid-level and closer to machine language.
- C++ Can create high-quality graphics processor applications.
Disadvantages of C ++ programming language
- C++ Is not pure OOP making it less suited to teach the concept of OOP for OOP rules can be violated. And in C ++ is no concept of pointers is very confusing, which is one reason why C ++ into something that most disliked.
- C++ Whose benefit is not affected by the operating system but a tool for developers to be the specific to one operating system instance of Visual Studio can only run on Windows. This reason also will be able to lower the interest on other operating systems eg Linux. If in practice the use of Visual Studio will automatically use it as well and ultimately lazy to try out other operating systems.
- Implementation of C++ in IT technology today has very little developer.
- Difficult to make something with the C++ programming deepen so that people finally have run aground, except on their own initiative to learn the language or other technology.
General Differences
In Java, dynamic memory management and pointer is done automatically. This automation eliminates the possibility for the use of pointers that could destabilize the program and the operating system. In C / C++ programmers do their own allocation and deallocation of memory.
- Java Not recognize multiple inheritance as in C / C++. Multiple inheritance in C / C++ is confusing and could result in the difficulty of making application and compiler. In exchange for the better, Java use interface.
- Java Using pure OOP language while C++ is a hybrid OOP languages (can use OOP or procedural models).
- Java uses a model Exception handling program errors.
- Java Not use the compiler-directive in the source code.
- Java Have a garbage collection facility that works automatically to ensure the availability of memory by freeing up memory that is not used anymore.
- Java Very portable, both the source file and the results of the compilation. This differs from the C / C ++ only portable at the source code level, and even then with codified when moved to a different platform.
- Java language specification and implementation of already established and do not follow a particular machine or platform. This differs from the C / C ++, which is highly dependent on the machine and the platform that will be used.
loading...
loading...

Comments
Post a Comment