Reputation: 390
I am new to java . When i was studying java programming I came to these two terms many times which looked similar and had similar meaning. I searched about it in many sites but i couldn't find the best difference i was looking for. Can anyone clarify this to me is it same or different ??
Upvotes: 1
Views: 718
Reputation: 1
portability stands for the way how you package and ship your Java code aka Java Application.
Platform independent stands for the way it is developed in such a way that the same can be implemented or emulated in any types of platforms.
Happy Coding !
Upvotes: -1
Reputation: 310860
The original meaning of 'portable' was 'costs less to convert to a new platform than it does to rewrite for the new platform'. As languages evolved and vendor lock-ins reduced, it has since morphed to mean several things including binary compatibility and source-code compatibility.
'Platform-independent' means that there is nothing in the system or its specification that is inherently bound to a single platform.
They're related, but not the same thing.
Upvotes: 6