This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Platform Independency.

 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys ,

I was thinking which other language except Java is platform independent language.

Can someone please tell me , I think this can be a interview question and i have a interview tomorrow.

Thanks in Advance.

Yogendra Joshi.
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is just c which is major but it is not really crossplatform.
in case that you want it to execute in other platform than where you develop /build your application , you need to recompile it for other platform.

also all libraries that are avaiable for c/c++ are not crossplatform , some of them are available in some platforms and some other are not avaiable.

An open source project that now is owned by Novell port some part of .net class libraries , CLI ... which allows you to execute .net application on Linux but that is not really guaranteed.

htht
 
Marshal
Posts: 79969
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MS claim that all the .NET languages, particularly C#, are platform-independent, but I have never tried, and am not convinced myself.

CR
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most languages are platform-independent, in the sense that you can run a program written in them on many platforms: C, C++, Ruby, Python, Perl, Smalltalk, and many more. Some of these need to be compiled separately for each platform, and some of them have libraries that are not the same on every platform. Any Microsoft language product, for example, includes Windows-only libaries. Still, there are many languages -- Ruby, Python, Perl -- with reasonably portable libraries and which don't need to be compiled on each platform. These really rival Java for portability, although Java is much faster than any of these.

But the idea of a "platform dependent language" is a rather antiquated one. The real platform-dependent languages like PL/I, the many flavors of Lisp, COBOL, etc, have been relegated to the background these days. All languages now in common use are portable at least to some extent.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
REXX is an ANSI standard langauge. There are interpreters on all IBM mainframe and distributed OS platforms, Windows, most Unix platforms and the Commodore Amiga. Code that uses only standard features generally runs on any platform.
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SQL as far as I know is a cross platform independent query lang. It may vary in some degree due to special vendor specific utilities. But the ANSI standard is an example of a very successful language.
 
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic