Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Write Once And Run Anywhere Nature In Java

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-02-2010
Member
 
Join Date: Nov 2009
Posts: 140
Write Once And Run Anywhere Nature In Java
  

Hello, I want to know the details about the Nature of java as a Write Once And Run Anywhere. I have recently started to learn java programming, but not able to know what exactly this nature is? So, if anyone is having details about it, then please provide that to me. I wanted to know the Write Once And Run Anywhere Nature In Java.

Reply With Quote
  #2  
Old 10-02-2010
Member
 
Join Date: May 2008
Posts: 2,012
Re: Write Once And Run Anywhere Nature In Java

As while developing java sun want to make it as a platform independent language, the concept of write once and run anywhere is developed. That means if you write any java program then it simply run on any machine if it is having java virtual machine. That means if you are using any application which is built with the help of java then it is not necessary to change it with different operating system. You can use a single application on all of the operating system.
Reply With Quote
  #3  
Old 10-02-2010
Member
 
Join Date: Apr 2008
Posts: 2,005
Re: Write Once And Run Anywhere Nature In Java

Hello, if you are making use of the java then you are having major benefit of it as it is the language which is developed for the cross-platform. It means that if you run the bytecode of it on any machine which is having installed the Java Runtime Environment. So, it will not needed different application setup on any machine that has the Java runtime environment. But, this type of development also needs to have the different levels and all of it depends on the level of use.
Reply With Quote
  #4  
Old 10-02-2010
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Write Once And Run Anywhere Nature In Java

Hello, this write once and run anywhere nature of java is available due to the Bytecode facility in java programming language. It provide the facility to the developer to get the solution from which one will able to use the object code and use single code on each type of operating system. So, Bytecode is the technique from which java will able to get the facility of Write once and run anywhere nature in java.
Reply With Quote
  #5  
Old 10-02-2010
Member
 
Join Date: May 2008
Posts: 2,297
Re: Write Once And Run Anywhere Nature In Java

Hello, If you make use of any of book on java then at the start of it you will able to know all of the details on the Write once and run anywhere nature in java:
  • Concurrent Programming in Java: Design Principles and Pattern 2nd Edition
  • Designing Enterprise Applications with the J2EE Platform, Second Edition 2nd Edition
  • Designing Web Services with the J2EE 1.4 Platform: JAX-RPC, SOAP, and XML Technologies
  • Effective Java, Second Edition 2nd Edition
Reply With Quote
  #6  
Old 10-02-2010
Member
 
Join Date: Oct 2005
Posts: 2,393
Re: Write Once And Run Anywhere Nature In Java

Hello, this facility of Write once and run anywhere is provided by the Bytecode facility in java. Bytecode provides the following stream:
Quote:
03 3b 84 00 01 1a 05 68 3b a7 ff f9
Bytecode is having following type of Disassembly:
Quote:
iconst_0
istore_0
iinc 0, 1
iload_0
iconst_2
imul
istore_0
goto -7
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Write Once And Run Anywhere Nature In Java"
Thread Thread Starter Forum Replies Last Post
Write a Java Programm Help !! jessesaini Software Development 1 08-05-2012 11:38 AM
how to write this pyramid using java? Rainy Software Development 1 07-09-2011 02:30 PM
Need help to write this program in java? frkadeel Software Development 1 01-12-2010 03:58 PM
How to write a Key Listener in Java? N I C K Software Development 5 13-02-2010 01:52 AM
How to write a Container Listener in Java? Pratim Software Development 4 12-02-2010 06:43 AM


All times are GMT +5.5. The time now is 09:35 AM.