Skip to main content

What is the Difference Between JAVA and C++ ? compare both of them.

                  Difference Between JAVA and C++

» Java is platform independent while C++ is not.
Platform independent means it can be implemented and operated on various platforms without any compatibility problem.

» Output of Java code is bytecode while in C++ it is executable file.
When we compile any JAVA program then an output file is generated which has .class extension, this file is called bytecode. While when we compile C++ file then an executable file is generated which has .exe extension

» Java does not support Pointer while C++ supports.
Because java provides a secure platform and use of pointers in any language makes it insecure by various means.

» Java does not support Structure and Union while C++ supports
These were felt to be redundant since the class encompasses them.

» Java does not support operator overloading while C++ supports.
Operator overloading causes ambiguity in programs that’s why JAVA does not support this

» Java only supports Constructor not Destructor
However you can implement destructor using finalize( ) function

» JAVA does not allow Default Arguments while C++ allows
A default argument is an argument to a function that is not required to specify when calling the function because it is already specified by the programmer in function declaration.

» Java does not support multiple inheritance while C++ supports it
However in JAVA “Multiple Inheritance” can be implemented by multi-level and hierarchical inheritance.

» In JAVA objects can be passed by reference only while C++ supports both (Pass by Reference and Pass by Value)

» Java does not support typedef

» Java does not allow the goto statement.

» Java does not support the delete operator.

» Java does not perform any automatic type conversions.

Comments

Popular posts from this blog

HOW TO HACK FACEBOOK ACCOUNT BY PHISHING [HOSTING]

Hack Facebook account by PHISHING (WEBHOSTING) It is a process to create a fake page of any website which feels and look like original website and sending to victim. By entering details by the victim, the details comes to us. It is some long method but good method. Step 1: You will need these files in next steps. Download these files from  here Step 2: Now go to free hosting sites. There are many but I used to use 000Webhost. Now create your account signing up there. After signing up, confirm your account with confirmation link sent in your e-mail. Sign up  here . Step 3: Now login your account. Step 4: Click on create new account. Step 5: Create your domain name and fill required information. Step 6: Now go to Control Panel and then click on File Manager. Step 7: Click on public_html. Step 8: Delete default.php file and click on upload. Step 9: Now upload your downloaded files. Now your phishing page is ready. Your phishing l...

CREATE WHATSAPP GROUP INVITATION LINK

How to create Whatsapp group Invitation link [Now available in Original Whatsapp also] Hello friends, now you can create your own group invitation link in whatsapp to add members themselves. If you want to create a group invitation link then read all. It is very simple method. Below, the page is looking long because I have given in full details with screenshots. Requirements:  You must be  Admin  of that group. Whatsapp Nano .  Click here  to download. Patience. STEP 1: Go to that  group  which you want to create a link. STEP 2: Click to  menu  (i.e. 3 dots). STEP 3. Click on  Group info . STEP 4: Click on  Add participant.. STEP 5:  Here, click on  Invite to group via link .                                                 STEP 6:  Copy  the given link.    ...

WHAT IS HACKING ? THINGS YOU SHOULD KNOW ABOUT HACKING.

There are many definitions of hacking. In this article, we will define hacking as identifying weakness in computer systems and/or networks and exploiting the weaknesses to gain access. An example of hacking is using by passing the login algorithm to gain access to a system. A hacker is a person who finds and exploits weakness in computer systems and/or networks to gain access. Hackers are usually skilled computer programmers with knowledge of computer security. Before we go any further, let’s look at some of the most commonly used terminologies in the world of hacking. Types of Hackers Hackers are classified according to the intent of their actions. The following list classifies hackers according to their intent. 1.Ethical Hacker (White hat): A hacker who gains access to systems with a view to fix the identified weaknesses. They may also perform penetration testing and vulnerability assessments. 2.Cracker (Black hat): A hacker who gains unauthorized access to ...