#1  
22nd August 2011, 09:19 PM
sasmita aich
 
Join Date: Aug 2011
Posts: 1

Why Java platform is considered to be an independent language but C, C++ isnt?


why java is platform independent language but c,c++ are not platform independent language???




  #2  
24th August 2011, 09:07 AM
tanmayeetripathy
Senior Member
 
Join Date: Aug 2011
Posts: 297
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

-java over other language is highly portable.

-java programs can be easily moved from one computer system to

another,anywhere and anytime..any changes in operating system

,processors and system resources will not make any changes in java

programs.this is the reason why java has become a popular language for

programming on internet which interconects different systems

worldwide.since the size of the primitive data types are machine

independent that's why java ensures portability..

I hope it would be a satifactory answer to your question
  #3  
24th August 2011, 10:36 PM
amaan khan ak
 
Join Date: Aug 2011
Location: bikaner
Posts: 579
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

Quote:
Originally Posted by sasmita aich View Post
why java is platform independent language but c,c++ are not platform independent language???
Java is a platform independent language thats why its very useful language now a days for web application.
Java is a platform independent language and a poratable language so that the executable code(byte code) can be used on other operating system.
C and C++ language dont have the property of platform independent thats why java language is so much useful now in market in the place of c and c++ language.
Java byte code can be used in other operating system,processor,system thats why java called platform independent language.

I think you get your answer.
  #4  
25th August 2011, 01:56 AM
NEIL6
Senior Member
 
Join Date: Apr 2011
Location: jalandhar
Posts: 211
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

Java is from sun micro system. It has many features similar to c++ but doesnt include any feature of c++ like pointers. It is platform independent language.

C++ includes OOP technology and it has all the advantage of C language. It is hypbrid platform dependent language.
Reply With Quote
  #5  
25th August 2011, 11:59 AM
ANIAAAAANNNNNIIIII00000
Senior Member
 
Join Date: Aug 2011
Posts: 487
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

Dear friend,
first of all you need to know what is platform , platform is where you are running your program or you can say java , for example the operating system is a platform. In case of java it doe's not matter where you have build the program and where are you running it , you can run it on xp, vista, or any other device like mobile etc, but in case of C and C++ it is not possible.
I think you understand the difference .
Reply With Quote
  #6  
31st August 2011, 12:34 PM
balafederer
Senior Member+
 
Join Date: Jul 2011
Posts: 813
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

Hello,

Yes, java platform is considered to be an independent language.

* THe concept of write once run program anywhere in java. It is one of the important key features of java language that makes java as the most powerful language. The programs written once platform can run on any platform provided the platform must have the JVM.
* But, C,C++ and does not support this platform independent. Hence java is a platform independent language

Best wishes
Reply With Quote
  #7  
3rd September 2011, 03:03 PM
belide
Senior Member+++
 
Join Date: Aug 2011
Posts: 1,956
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

Jva is considered as platform independent as it can be executed in other system though you implemented the code in other system...
where as c and c++ doesnot have such facility..
they are not from sun microsystems such as java..
so they are lack of facilities.
Reply With Quote
  #8  
3rd September 2011, 05:37 PM
manoj rajpurohit
Junior Member
 
Join Date: Feb 2011
Location: Bikaner
Posts: 352
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

Java is highly portable language because whenever a programmer compile his source code then a .class file is generated (.class means that class in which the main function is declared).
this .class file is known as Byte code. this byte code is portable and can be rum on any platform like Linux and any operating system.
This all lines indicates that java is a platform independent language.
bur this characteristic is not found in the c or c++ language. these are platform dependent language.
Reply With Quote
  #9  
3rd September 2011, 09:07 PM
goutam1222
Member
 
Join Date: Sep 2011
Posts: 75
Default Re: Why Java platform is considered to be an independent language but C, C++ isnt?

"Java is platform independent language" only and only because java compiler that is your JDK, creates a class file(*.class) that is supposed to run on any JVM(java virtual machine) installed PC or laptop. after compiling the code java creates a intermediate code called java byte code which is "platform independent" in respect that the target machine should have installed JVM.
c and c++ lag behind in the feature of this byte code concept.
Reply With Quote
Do you have any question? or have anything to say?



Related Topics:

Thread Replies Last Post
Should I take training classes anywhere before applying for Java platform course? 3 20th October 2012 05:14 PM
Is Java platform in MCA 3rd year good? 6 22nd December 2011 07:59 PM
Which language should I prefer between Java and C#? Details about the international certifications of the particular language? How can I prepare for it? 5 3rd September 2011 06:18 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise.
Please also check: