Difference Between C++ & JAVA




Difference Between   C++ & Java-



  1. In C++ we can write a programs without classes,but in Java we can not write programs without classes.
  2. In C++ Memory creation & Distruction is done manually by the programmers ,but in Java Memory creation & destruction done automatically by the JVM.
  3. In C++ we have constructor & destructor ,but in Java Only we have only Constructor there are no destrutor.
  4. C++ has three Acess modifiers Private Public and Protected ,But in Java we have 4 Acess Modifiers Public,Protected,Private & default.



[NOTE-:     Java is Object Oriented programming language because we can not start a programme without class.]

Define & Differentiate  JDK,JRE,JVM-:


JDK- :
  1. It stands for Java Development kit.
  2. By using JDK we can write the programs ,debug the programs if any error, Link the Libraries and execute the program .
  3. JDK is installed on Developer System.
  4. JDK contains Java Compiler +JVM



JRE-:
  1. JRE stands for Java Runtime Environment .
  2. By using JRE we can Link the Libraries and execute the Byte Code.
  3. JRE contains only JVM.

Java Latest version -

JAVA8
  • JDK 1.8 + JRE 1.8
JAVA 7
  • JDK 1.7 + JRE 1.7     //Dolphin
JAVA6

  • JDK 1.6 + JRE 1.6   //Mustage
JAVA5

  • JDK 1.5 + JRE 1.5   //Tiger      etc...



JVM-:
[Note-:
Virtual Machine-     The isolated High Perform & duplicate copy of Machine is Known as  Virtual Machine.]

JVM is software module running independently in executing the instruction of the programme.



















0 comments:

Post a Comment

Enter Here Your Ideas and Comment to improve this Blog

Popular Posts

Nilesh Jha. Powered by Blogger.

Contact Form

Name

Email *

Message *

Copyright © Nilesh Jha's Blog |
|