Java is pure object oriented programming language than c++, it uses the concepts of Classes, Objects, Inheritance, Polymorphism. And the execution of a program is non-linear.
Java's motto (so to speak) is "write once run anywhere".
When you compile a Java program, an intermediate bytecode is generated, which itself is interpreted by the Java Virtual Machine. This way you write a program once, and the virtual machine translates the bytecode into instructions a specific processor can understand. Execution of a Java program is by consequence a bit slow, because the intermediate bytecode has to be interpreted.
Java uses a "Garbage Collector" which manages memory automatically so the programmer doesn't have to handle that.
Variables in Java can be declared anywhere in a program. (Although it is recommended to declare/define them at the beginning of blocks).
Reuse of code achieved by inheritance.
By default members are private.
During the execution of bytecode by JVM, it does not substitute the entire classes of package which are imported in the program. It just enters the package and executes the class and returns result in to the program. Due to this less memory is used by java program.
C
Difference between class and structure:
In class,We can declare and define data members and member functions.But in Structure we can declare variables and functions.
JAVA:
Java was created for the purpose of making a language that could be implemented on many different types of computers (cell phone, mac, PC, linux, etc.) C on the other hand can only be run on a computer of the same type as the one that compiled the program.
One of the costs of this portability in Java is speed. On numerous benchmarks Java still lags behind C in terms of speed, but that gap is narrowing.
Java is also object-oriented, whereas C is not. Java allows a user to create classes that contain data and methods. C is not capable of doing that.
C is the procedural based language i.e. it follows top down approach of programming
while java is purely object oriented language it has main features like class ,object,inheritance,polymorphism,abstraction ............
C is a programming language, oops is what you say when you realize you were wrong in something. Note: Some programming languages are known as object-orient languages, C is not one of them, but some derivatives of it (C++, C#, Java) are.
There are no 'partial' programming languages.
They are all programming languages.
Perl, php and Java are all examples of programming languages.
Linux is a platform, and as such supports a myriad of programming languages. Of these languages C, C++, Java, Python and Perl are very popular, but there are many other programming languages. Some, like Python and Perl are 'interpretive' and similar in this respect to 'BASIC'. C and C++ are compiled, and Java sits somewhere between them.
java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.
C is a programming language, oops is what you say when you realize you were wrong in something. Note: Some programming languages are known as object-orient languages, C is not one of them, but some derivatives of it (C++, C#, Java) are.
java if u interested in programming languages ! testing if u not interested in programming languages !
There are no 'partial' programming languages.
Java doesn't have pointers. C++ has pointers.
Java applets are written in the Java programming language. Java is considered to be one of the oldest and most commonly used programming languages in the world.
Windows is an operating system whereas Java is a programming language. They are entirely different.
The Internet is a world-wide computer network. Java is a computer programming language.
java is an advanced object oriented programming language than c++
You don't. There are hundreds, nay thousands, of programming languages, Java is just one of them. Programming languages are used to make computer programs (software); software is basically what makes computers work.
They are all programming languages.
Java is not similar to C. Java is, however, similar to C++. Both C++ and Java are object orientated programming languages (OOPL's).