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...

How to Add SEO Friendly Meta Tags in Blogger ?

SEO Meta Tags for Description and Keyword is main aspects in On Page SEO to make Your Blog more SEO Friendly. Google can Easily Find your Blog and When Search Engine Easily Catch your Description and Keyword It can Increase the Click Through Rate (CTR).These SEO Friendly Meta Tags help Search Engines Bots Like Google Bot, Yahoo Bot to Understand that what the Webpage is about. It is very Helpful in Blogger if you Use this SEO Friendly Meta Tags very Effectively in your Blogger Template. Related :   Blog & Post Title Optimization For Blogger SEO. It is one of the On Page SEO Strategy of Blogger and Increase your Blog / Site Ranking in Popular Search Engine Like Google, Yahoo and Bing. Many of Blogger not use These SEO Meta Tags because Lack of SEO and Some of I Seen they Use their Blog Description as a Post Description that Conflicts in Search Engine So Bots Can’t Able to Crawl that Webpage. So Guys Use These Below Tags to Improve you On Page Blogger SEO. You Need to Use a...

How To Install Kali Linux in Android using Linux Deploy

The most important tool for every hacker, programmer and forensics expert is nothing other than-Linux. Linux's distros are used in forensics, checking bug in program, networks or system. Its well used from time before till now. Soo for every hacker needs it.    Since it is developing OS for Computer especially for laptops , from before some year it begins to develop OS for Android too.. It can now be more usefull and handy because we can take it into our mobile wherever we want.     Soo today's article is all about how to install Kali linux in Android in Linux Deploy. First of all these conditions are to be checked or fulfilled before proceeding ahead. : *.A device running Android 2.1 and above, rooted. *.At least 5 GB free space on internal or external storage. *.A fast, wireless internet connection. *.Patience to wait for a distribution to bootstrap from the network. *.Rooted Android for full funcality After having this in ...